View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] cbalajii@gmail.com is offline
external usenet poster
 
Posts: 5
Default Open Workbooks present in the same directory

Hi,

I am creating a macro that will use data that resides in the same
directory as the file that has the macro code.

My Macro runs like this:

Workbooks.Open "Slash Daily Case Closed.xls"

When I open the file (reports.xls) from explorer and run the macro it
gives me error 1004.

However, when i use File Open and open reports.xls, the macro runs
perfectly fine.

Any help would be greatly appreciated.