ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to find out the residing directory of the opened workbook using VBA code ? (https://www.excelbanter.com/excel-programming/306306-how-find-out-residing-directory-opened-workbook-using-vba-code.html)

Adrian[_7_]

How to find out the residing directory of the opened workbook using VBA code ?
 
Hi ,

How do we find out the residing directory of the opened workbook using
VBA code ? The command "curDir" doesn't seem to work here ...

Thanks...

--
Regards,
Adrian



Rob Bovey

How to find out the residing directory of the opened workbook using VBA code ?
 
"Adrian" wrote in message
...
How do we find out the residing directory of the opened workbook using
VBA code ? The command "curDir" doesn't seem to work here ...


Hi Adrian,

I think ThisWorkbook.Path is what you're looking for.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



RB Smissaert

How to find out the residing directory of the opened workbook using VBA code ?
 
Sub test()

MsgBox ActiveWorkbook.FullName, , "Full path of the active workbook"

End Sub

RBS


"Adrian" wrote in message
...
Hi ,

How do we find out the residing directory of the opened workbook using
VBA code ? The command "curDir" doesn't seem to work here ...

Thanks...

--
Regards,
Adrian





All times are GMT +1. The time now is 05:35 PM.

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