Hi! I'm new to MrExcel.com - it's highly recommended by an associate.
Here’s the question:
I've created a summary report with VBA code that resizes the sheet to fit the size of the window - just like using Zoom to Selection. The code runs whenever that worksheet is selected.
If the Excel window is small, the range automatically zooms to fit the window when the sheet is selected.
But if you then resize the window, the range does not zoom out to fit the window. (Unless you click on another page, then click back to the Summary Page.)
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
> </o
>
Is there a VB/VBA function that recognizes – as an EVENT – when the window is resized? Then that would trigger the code to zoom to the correct size.
<o
> </o
>
If not, then I’ll add a button to the screen that will resize the range.
Here’s the question:
I've created a summary report with VBA code that resizes the sheet to fit the size of the window - just like using Zoom to Selection. The code runs whenever that worksheet is selected.
If the Excel window is small, the range automatically zooms to fit the window when the sheet is selected.
But if you then resize the window, the range does not zoom out to fit the window. (Unless you click on another page, then click back to the Summary Page.)
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com




Is there a VB/VBA function that recognizes – as an EVENT – when the window is resized? Then that would trigger the code to zoom to the correct size.
<o


If not, then I’ll add a button to the screen that will resize the range.