View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default 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