Determine number of windows open

alexenvalencia

New Member
Joined
Mar 25, 2011
Messages
11
Dear wise sages,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
I have a workbook which at any one time can have one or two windows(views) open at the same time of the same workbook.<o:p></o:p>
<o:p> </o:p>
Two windows:<o:p></o:p>
Windows("ROCKET.xlsm:1")<o:p></o:p>
Windows("ROCKET.xlsm:2")<o:p></o:p>
<o:p> </o:p>
One window:<o:p></o:p>
Windows("ROCKET.xlsm")<o:p></o:p>
<o:p> </o:p>
How can I programatically determine which state I am in currently (one window, or teo windows) ?<o:p></o:p>
<o:p> </o:p>
Many thanks,<o:p></o:p>
<o:p> </o:p>
Alex<o:p></o:p>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,224,520
Messages
6,179,266
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top