ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   application.run 'current' filename? (https://www.excelbanter.com/excel-programming/372361-application-run-current-filename.html)

Helmut

application.run 'current' filename?
 
I have this code:

Application.Run "MESSER.xls!Sort_by_ID"

how can I make the "MESSER.xls" to be automatically the "current" Filename?

Helmut

Bob Phillips

application.run 'current' filename?
 
Application.Run "'" & ActiveWorkbook.Name & "'!Sort_by_ID"

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Helmut" wrote in message
...
I have this code:

Application.Run "MESSER.xls!Sort_by_ID"

how can I make the "MESSER.xls" to be automatically the "current"

Filename?

Helmut





All times are GMT +1. The time now is 01:55 AM.

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