A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Opening multiple windows of same workbook with macro



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2004, 04:04 PM
surveyorinva
external usenet poster
 
Posts: n/a
Default 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  
Old June 15th, 2004, 09:00 PM
Jim Rech
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.