Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default set zoom when file opened

David, here is one way, for one sheet

Private Sub Workbook_Open()
Sheets("Sheet2").Select
ActiveWindow.Zoom = 90
End Sub

Or for all sheets

Private Sub Workbook_Open()
Application.ScreenUpdating = False
Set A = ActiveSheet
For Each Sheet In ThisWorkbook.Worksheets
Sheet.Activate
ActiveWindow.Zoom = 90
Next Sheet
A.Activate
Application.ScreenUpdating = True

End Sub

Put in this workbook code
--
Paul B
Always backup your data before trying something new
Using Excel 2000 & 97
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **
"david" wrote in message
...
How can I write a macro that will set the zoom on the
worksheet when the file is opened?

Thanks,
David



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
i zoom to 75% on Excel but returns to 100% reopening file dennis at leapley Excel Worksheet Functions 0 November 17th 06 03:16 PM
View zoom slowing opening of the file ConnieM Excel Discussion (Misc queries) 0 July 27th 06 11:07 PM
cannot open the excel file, the file is already opened cannot open the excel document Excel Discussion (Misc queries) 1 May 19th 06 07:45 AM
zoom error when opening file colin919 Excel Discussion (Misc queries) 0 March 1st 05 04:37 PM


All times are GMT +1. The time now is 02:16 PM.

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

About Us

"It's about Microsoft Excel"