MedievalMan
Board Regular
- Joined
- Dec 14, 2004
- Messages
- 57
For many of our template layouts, "Fit to page" is selected.
When you go to page setup, the corresponding ZOOM % is also displayed.
What I'm trying to do is: a routine that inserts logo, header and footer text to look be the same size for each tab.
Since Excel zooms the header/footer depending on the zoom % you have selected (or fit to), what I do is divide the font size and picture size by the zoom first, so that way when it prints the headers/footers are the same size throughout the different worksheets.
The problem I'm having is:
<code>
Zoom = Worksheets(wsname).PageSetup.Zoom
</code>
The Zoom level is 0 if "Fit to page" is still selected.
Now, I can manually go to every page and selected "Adjust to" instead of "Fit to", but I cannot record a macro to do that, since when I record while doing this manually, I get the following (snippet only):
<code>
ActiveSheet.PageSetup.Zoom = 85
</code>
So, I need a way to be able to grab what the zoom level is when set to "Fit To Page", or any other method that might help.
Thanks in advance,
Matt Lawson
When you go to page setup, the corresponding ZOOM % is also displayed.
What I'm trying to do is: a routine that inserts logo, header and footer text to look be the same size for each tab.
Since Excel zooms the header/footer depending on the zoom % you have selected (or fit to), what I do is divide the font size and picture size by the zoom first, so that way when it prints the headers/footers are the same size throughout the different worksheets.
The problem I'm having is:
<code>
Zoom = Worksheets(wsname).PageSetup.Zoom
</code>
The Zoom level is 0 if "Fit to page" is still selected.
Now, I can manually go to every page and selected "Adjust to" instead of "Fit to", but I cannot record a macro to do that, since when I record while doing this manually, I get the following (snippet only):
<code>
ActiveSheet.PageSetup.Zoom = 85
</code>
So, I need a way to be able to grab what the zoom level is when set to "Fit To Page", or any other method that might help.
Thanks in advance,
Matt Lawson