Opening multiple windows of same workbook with macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created a macro that will open several windows of the workbook I have created and each window will show a different tab on a different place on the screen. When I look at the code it references the code:
Windows("Cutsheettemplate3.0.xls:3").Activate
when I switch to one of the three windows and manipulate it. This works great if and only if the name of my workbook is Cutsheettemplate3.0.xls which will not always be the case. How can I revise the code to make it dynamic with what ever I name the file.
Thanks for all your help!
 
Windows(ActiveWorkbook.Name & ":3").Activate

--
Jim Rech
Excel MVP
|I created a macro that will open several windows of the workbook I have
created and each window will show a different tab on a different place on
the screen. When I look at the code it references the code:
| Windows("Cutsheettemplate3.0.xls:3").Activate
| when I switch to one of the three windows and manipulate it. This works
great if and only if the name of my workbook is Cutsheettemplate3.0.xls
which will not always be the case. How can I revise the code to make it
dynamic with what ever I name the file.
| Thanks for all your help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top