#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 202
Default Zoom Q

How would I Zoom all sheets to 75% when particular file is opened?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Zoom Q

Put this in the Workbook_open event of the ThisWorkbook module

Sub zoomem()
Sheets.Select
With Sheet1
.Activate
ActiveWindow.Zoom = 75
.Select
End With
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Seanie" wrote in message
...
How would I Zoom all sheets to 75% when particular file is opened?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Zoom Q

Call the run Zoom75 subroutine when you open the file and run the Zoom100
subroutine when you close it.

Sub Zoom75()
Dim CurrWS As Worksheet
Dim WS As Worksheet
Set CurrWS = ActiveSheet
Application.ScreenUpdating = False
For Each WS In Worksheets
WS.Activate
ActiveWindow.Zoom = 75
Next
CurrWS.Activate
Application.ScreenUpdating = False
End Sub

Sub Zoom100()
Dim CurrWS As Worksheet
Dim WS As Worksheet
Set CurrWS = ActiveSheet
Application.ScreenUpdating = False
For Each WS In Worksheets
WS.Activate
ActiveWindow.Zoom = 100
Next
CurrWS.Activate
Application.ScreenUpdating = False
End Sub

--
Rick (MVP - Excel)


"Seanie" wrote in message
...
How would I Zoom all sheets to 75% when particular file is opened?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 202
Default Zoom Q

Don / Rick thanks for your help. Just a Q on yours Rick, what would be
the point in Zooming to 100 when its closed, if it always opens up at
75%?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Zoom Q

Good point.

--
Rick (MVP - Excel)


"Seanie" wrote in message
...
Don / Rick thanks for your help. Just a Q on yours Rick, what would be
the point in Zooming to 100 when its closed, if it always opens up at
75%?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help! Print Preview Zoom is Grayed Out...Doesn't zoom. PK Excel Discussion (Misc queries) 0 July 20th 09 03:33 PM
Zoom in/Zoom out picture [email protected] Excel Programming 1 January 27th 08 04:19 PM
zoom in &zoom out in VBA User Form [email protected] Excel Programming 0 January 21st 08 04:59 AM
Can't Zoom LOUR Charts and Charting in Excel 0 April 19th 07 09:00 PM
Zoom value Glen Mettler[_4_] Excel Programming 9 March 1st 05 03:16 AM


All times are GMT +1. The time now is 04:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"