This question regards Microsoft Excel 2011 for Mac.
Good day to everyone. I am currently using a startup add in, which sets every Excel document I create or open to the particular Zoom level.
Here it is:
ThisWorkbook:
MyWindowReg Module:
MyWindowClass Class Module:
What it does is that every time I open an existing workbook or create a new one, it automatically sets Zoom to 183% (this is the exact zoom percentage, that makes everything on screen identical to the printed copy on a 132 ppi MBP17" display).
Problem here is:
It only changes the Zoom setting of the Sheet that is opened first (or is created first in case of new workbooks). When I switch from the first Sheet to any other (or create a new one) - the Zoom setting is 100% (or whatever it was the last time the file was saved).
Question, if I may:
How to modify the code above to make it also automatically change Zoom setting to 183% every single time I switch between Sheets?
Remark:
I know almost nothing about VBA, the code above is borrowed from somewhere around the Internets. I can modify the add in on my own though.
Good day to everyone. I am currently using a startup add in, which sets every Excel document I create or open to the particular Zoom level.
Here it is:
ThisWorkbook:
Code:
Private Sub Workbook_Open()
Setup_Windows
End Sub
MyWindowReg Module:
Code:
Dim clsMyWindow As MyWindowClass
Public Sub Setup_Windows()
Set clsMyWindow = New MyWindowClass
End Sub
MyWindowClass Class Module:
Code:
Public WithEvents oApp As Application
Private Sub oApp_WorkbookOpen(ByVal Wb As Excel.Workbook)
With ActiveWindow
.Zoom = 183
End With
End Sub
Private Sub Class_Initialize()
Set oApp = Application
End Sub
What it does is that every time I open an existing workbook or create a new one, it automatically sets Zoom to 183% (this is the exact zoom percentage, that makes everything on screen identical to the printed copy on a 132 ppi MBP17" display).
Problem here is:
It only changes the Zoom setting of the Sheet that is opened first (or is created first in case of new workbooks). When I switch from the first Sheet to any other (or create a new one) - the Zoom setting is 100% (or whatever it was the last time the file was saved).
Question, if I may:
How to modify the code above to make it also automatically change Zoom setting to 183% every single time I switch between Sheets?
Remark:
I know almost nothing about VBA, the code above is borrowed from somewhere around the Internets. I can modify the add in on my own though.