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

Directory of Current Application 2

Status
Not open for further replies.

mveera

Programmer
Nov 6, 2002
81
US
Hi,

I would like to know how i can get the current directory from where an Excel Application is Executed (Excel File location). The "CurDir" function returns the current working directory set, which could be other than the location where the file is. But i would like to know where the file is located.

Thanks
Veera
 
If you are talking about the Excel workbook, lookup these properties: ActiveWorkbook.FullName, ActiveWorkbook.Path.

If you are talking about the Excel application, lookup this property: Application.Path, ActiveWorkbook.Application.Path.

Good Luck!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top