nparsons75
Well-known Member
- Joined
- Sep 23, 2013
- Messages
- 1,254
- Office Version
- 2016
Hi,
When I open a file I need the page size to be set for optimum viewing. In each tab of the worksheet I use this vba code.
Private Sub Worksheet_Activate()
Range("$A$1:$aL$1").Select
ActiveWindow.Zoom = True
End Sub
Im not too familiar with VBA but to make this work, when the file is open i have to click a different tab and then back to the one i am using to activate the screen size. Is there a different code to use? Is it something to do with activate? (just a guess)...
Thanks,
When I open a file I need the page size to be set for optimum viewing. In each tab of the worksheet I use this vba code.
Private Sub Worksheet_Activate()
Range("$A$1:$aL$1").Select
ActiveWindow.Zoom = True
End Sub
Im not too familiar with VBA but to make this work, when the file is open i have to click a different tab and then back to the one i am using to activate the screen size. Is there a different code to use? Is it something to do with activate? (just a guess)...
Thanks,