VBA - Path of the excel file

  • Thread starter Thread starter abc2002
  • Start date Start date
A

abc2002

Hi all!

Fisrt of all, I want to thank you for your support :)

My question is: How can I get the path of the current Excel file in
VBA?

thanks
 
Sub CurrDir()
Dim MyPath As String
MyPath = CurDir
MsgBox MyPath
End Sub

HTH
Jason
Atlanta, GA
 

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