Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locating the current workbook location 1

Status
Not open for further replies.

MrMajik

IS-IT--Management
Joined
Apr 2, 2002
Messages
267
Does Excel offer a way using VisualBasic to grab the path to where the workbook is currently located?

Access has the ol' tried-and-true Application.CurrentProject.Path that gives you the database location path but that does not seem to work in Excel.

Any ideas?

Thank you.
 
You can use
Code:
   Application.ActiveWorkbook.Path
or simply
Code:
   ActiveWorkbook.Path
 
Zathras; Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top