Hi there, I'm losing my mind with this can someone please save me? I think I need to determine a cell but not sure how?
I am looking for all worksheets to zoom to the value I enter into Cell G138? Doesn't work?
Any help very much appreciated!
Sub Zoom()
'UpdatebyExtendoffice20171215
Dim I As Long
Dim xActSheet As Worksheet
Set xActSheet = ActiveSheet
For I = 1 To ThisWorkbook.Sheets.Count
Sheets(I).Activate
ActiveWindow.Zoom = G138
Next
xActSheet.Select
End Sub
I am looking for all worksheets to zoom to the value I enter into Cell G138? Doesn't work?
Any help very much appreciated!
Sub Zoom()
'UpdatebyExtendoffice20171215
Dim I As Long
Dim xActSheet As Worksheet
Set xActSheet = ActiveSheet
For I = 1 To ThisWorkbook.Sheets.Count
Sheets(I).Activate
ActiveWindow.Zoom = G138
Next
xActSheet.Select
End Sub