View Full Version : help with macro that opens and close


JasonLevan
01-27-2011, 08:11 AM
I need a macro that will open one workbook and go to it, but close the one it just came from so i dont have it open anymore. It does not need to save changes when it close.


Thanks

the_net_2.0
01-27-2011, 08:52 AM
check out the :application.workbooks.open("path")method.

this is very easy. google it.

JasonLevan
01-27-2011, 10:13 AM
check out the :application.workbooks.open("path")method.

this is very easy. google it.

but how do i get it to close the other one

the_net_2.0
01-27-2011, 11:19 AM
http://www.exceltip.com/st/Close_a_workbook_using_VBA_in_Microsoft_Excel/469.html

JasonLevan
01-27-2011, 12:30 PM
I saw this but my problem is that once I switch over to a new workbook the one I want to close is not the "Active.Workbook" so how do i get it.