ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Determining the full path and filename of an active workbook (https://www.excelbanter.com/excel-programming/371838-determining-full-path-filename-active-workbook.html)

Aaron Dyck

Determining the full path and filename of an active workbook
 
Is there any way to determine the full path and filename of the active
workbook? I'm writing a macro that creates and saves files, and I'd like it
to reference the full path of the file so that I can use the same program to
open and view the files afterwards. Any suggestions?

Gary Keramidas

Determining the full path and filename of an active workbook
 
thisworkbook.path

should do it



--


Gary


"Aaron Dyck" wrote in message
...
Is there any way to determine the full path and filename of the active
workbook? I'm writing a macro that creates and saves files, and I'd like it
to reference the full path of the file so that I can use the same program to
open and view the files afterwards. Any suggestions?





All times are GMT +1. The time now is 02:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com