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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

path name

Status
Not open for further replies.

jmnekrkt

Programmer
Feb 21, 2002
47
US
how can I extract just the path of the currently opened excel file? If I open the file from recent list, and use curdir, I receive excel default directory instead of the folder where the file resides. I need to open additional files the will be in the same directory whereever the current file is located. Current file location will vary by user.

Thank you
 
A workbook has a Path property (returns an empty string for an unsaved file).

ActiveWorkbook.Path should give you what you are looking for (or perhaps Thisworkbook.Path)

A.C.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top