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

  • Thread starter Thread starter Adrian
  • Start date Start date
A

Adrian

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...
 
Adrian said:
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 *
 
Sub test()

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

End Sub

RBS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top