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!

Xls execution path

Status
Not open for further replies.

sarduspater

Programmer
Jan 31, 2010
38
IT
I have some xls files who opens by vba txt or xls files for read/write.
How can I know the path of my xls program in execution?
Thanks.

Renato
 


Hi,
Code:
s = application.path


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I'd use ThisWorkbook.Path

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 



I was wondering why you want to know the path of Excel? But THAT is what you asked!

I agree that more than likely, you want to know where your workbook resides, which is not where the xls program is.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
My workbook and xls program are in the same file.
I'm looking for his path.
ThisWorkbook.Path works fine, application.path returns excel.exe path.
Thanks to all.

Renato
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top