ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Window ("****.xls").Activate (https://www.excelbanter.com/excel-programming/298249-window-%2A%2A%2A%2A-xls-activate.html)

Robert[_16_]

Window ("****.xls").Activate
 
I would like to know how to us a named range to provide
the file name vs. hard coding the file name.

Thanks

Bob Phillips[_6_]

Window ("****.xls").Activate
 
sFile = Range("myWorkbook")

Workbooks.Open Filename:= sFile

etc.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Robert" wrote in message
...
I would like to know how to us a named range to provide
the file name vs. hard coding the file name.

Thanks





All times are GMT +1. The time now is 06:51 AM.

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