If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Opening multiple windows of same workbook with macro
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! |
#2
|
|||
|
|||
Opening multiple windows of same workbook with macro
Windows(ActiveWorkbook.Name & ":3").Activate
-- Jim Rech Excel MVP "surveyorinva" wrote in message ... |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! |
Thread Tools | |
Display Modes | |
|
|