How to get path of ThisWorkBook

M

Mili

Hi,

I am trying to display the path of the excel wheet I
am working on using VBA macro.

I am using office 2000.

Thanks

Regards

Mili.
 
R

Ron Rosenfeld

Hi,

I am trying to display the path of the excel wheet I
am working on using VBA macro.

I am using office 2000.

Thanks

Regards

Mili.


Sub workbookpath()
MsgBox ("Workbook Path: " & ThisWorkbook.Path)
End Sub

Of course, the path is undefined until you save the workbook.


--ron
 

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

Top