Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Capturing the directory when a workbook is opened from Explorer

I would like to be able to capture the directory that a
workbook is opened from Windows Explorer in a VB auto_open
macro. The CurDir function only works if the file was
opened using Excel.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default Capturing the directory when a workbook is opened from Explorer


Would
ThisWorkbook.Path
do the job?

Alex J

"Brian Walters" wrote in message
...
I would like to be able to capture the directory that a
workbook is opened from Windows Explorer in a VB auto_open
macro. The CurDir function only works if the file was
opened using Excel.



Reply
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
Sort by file/directory like explorer NikiB Excel Discussion (Misc queries) 7 June 23rd 09 07:55 PM
I could not opened Excel 2002 files from Windows Explorer Azim Excel Discussion (Misc queries) 2 December 3rd 08 01:17 PM
Why Excel files opened from Explorer are slow - MVP response pleas Chris_MSI Excel Discussion (Misc queries) 0 June 6th 07 01:52 PM
Windows Explorer maximizes over XL 2000, if opened w/ explorer bill Excel Discussion (Misc queries) 2 June 28th 05 02:53 PM
Is it possible to require that a KEY NUMBER be imputed in a workbook 1 before workbook 2 can be opened? Marcello do Guzman Excel Programming 0 October 15th 03 06:29 PM


All times are GMT +1. The time now is 03:15 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"