ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Workbook activation issue (https://www.excelbanter.com/excel-programming/322292-workbook-activation-issue.html)

Petr

Workbook activation issue
 
Hallo,
I am problem with workbook activation.

I want to switch to e.g. this workbook
Windows("SEF 1997 RZ Pr.xls").Activate

I want to submit both parameters below via inputbox.

segment = SEF
year = 1997

Here is my sample code which ends with error.

Windows("& segment & " & " " & year & " RZ Pr.xls").Activate

Thanks a lot in advance for any suggestions.

Best regards, Petr Duzbaba

Bob Phillips[_6_]

Workbook activation issue
 
Windows(segment & " " & year & " RZ Pr.xls").Activate

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Petr" wrote in message
om...
Hallo,
I am problem with workbook activation.

I want to switch to e.g. this workbook
Windows("SEF 1997 RZ Pr.xls").Activate

I want to submit both parameters below via inputbox.

segment = SEF
year = 1997

Here is my sample code which ends with error.

Windows("& segment & " & " " & year & " RZ Pr.xls").Activate

Thanks a lot in advance for any suggestions.

Best regards, Petr Duzbaba





All times are GMT +1. The time now is 05:28 PM.

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