ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Capturing the directory when a workbook is opened from Explorer (https://www.excelbanter.com/excel-programming/284037-capturing-directory-when-workbook-opened-explorer.html)

Brian Walters[_2_]

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.

Alex J

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.





All times are GMT +1. The time now is 03:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com