LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default opening a workbook in the current directory

I'm trying to determine whether or not this can be done using VBA:

Using Windows Explorer, say, I double-click to open an Excel file
located in a directory other than the default Excel directory. In this
workbook is VBA code that attempts to open another workbook located in
the same directory:

Workbooks.Open "XYZ.xls"

The operation fails, apparently because it's looking in the default
Excel directory. Is there a way to specify that the program look in the
current, working directory?

Rich
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a spreadsheet recognize the current directory it is in? Dable Excel Discussion (Misc queries) 5 April 20th 09 06:22 PM
current directory Ross[_2_] Excel Discussion (Misc queries) 1 April 2nd 07 10:00 PM
Current Directory Mallasch Excel Discussion (Misc queries) 4 September 15th 06 03:05 AM
Update Links to current Directory?? Pulcue Excel Discussion (Misc queries) 1 June 27th 05 12:11 PM
OPENING A FILE LOCATED IN A DIRECTORY DIFFERENT FROM CURRENT DIRECTORS Steven R. Berke Excel Programming 1 July 25th 03 04:49 PM


All times are GMT +1. The time now is 12:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"