#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default ZOOM

Hello experts,

Is there a way to set Excel to open any/all workbooks/sheets at N%.

Everytime I'm given an xls doc, I end up shrinking it down to 75 or
80% to fit my screen. I'd like Excel to automatically do this
whenever I open any xls doc.

Thanks,
alex
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default ZOOM

Saved from a previous post:

For brand new workbooks, you could create a book.xlt workbook template (stored
in your XLStart folder) that has each window the way you want.

If you want existing workbooks, then ...

Create a new workbook.
Add this code to the ThisWorkbook module:

Option Explicit
Public WithEvents xlApp As Application
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Set xlApp = Nothing
End Sub
Private Sub Workbook_Open()
Set xlApp = Excel.Application
End Sub
Private Sub xlApp_NewWorkbook(ByVal Wb As Workbook)
Call DoTheWork(Wb)
End Sub
Private Sub xlApp_SheetActivate(ByVal Sh As Object)
Call DoTheWork(Sh.Parent)
End Sub
Private Sub xlApp_WorkbookOpen(ByVal Wb As Workbook)
Call DoTheWork(Wb)
End Sub
Private Sub DoTheWork(Wb As Workbook)
Dim myWindow As Window
For Each myWindow In Wb.Windows
myWindow.Zoom = 75
Next myWindow
End Sub

Save this file as an addin in your XLStart folder.

Each time you create a new workbook, open an existing workbook, change to a new
sheet, it'll set the zoom to 75%.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

You can read a lot more about application events at Chip Pearson's site:
http://www.cpearson.com/excel/AppEvent.htm

alex wrote:

Hello experts,

Is there a way to set Excel to open any/all workbooks/sheets at N%.

Everytime I'm given an xls doc, I end up shrinking it down to 75 or
80% to fit my screen. I'd like Excel to automatically do this
whenever I open any xls doc.

Thanks,
alex


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default ZOOM

On Feb 22, 11:48*am, Dave Peterson wrote:
Saved from a previous post:

For brand new workbooks, you could create a book.xlt workbook template (stored
in your XLStart folder) that has each window the way you want.

If you want existing workbooks, then ...

Create a new workbook.
Add this code to the ThisWorkbook module:

Option Explicit
Public WithEvents xlApp As Application
Private Sub Workbook_BeforeClose(Cancel As Boolean)
* * Set xlApp = Nothing
End Sub
Private Sub Workbook_Open()
* * Set xlApp = Excel.Application
End Sub
Private Sub xlApp_NewWorkbook(ByVal Wb As Workbook)
* * Call DoTheWork(Wb)
End Sub
Private Sub xlApp_SheetActivate(ByVal Sh As Object)
* * Call DoTheWork(Sh.Parent)
End Sub
Private Sub xlApp_WorkbookOpen(ByVal Wb As Workbook)
* * Call DoTheWork(Wb)
End Sub
Private Sub DoTheWork(Wb As Workbook)
* * Dim myWindow As Window
* * For Each myWindow In Wb.Windows
* * * * myWindow.Zoom = 75
* * Next myWindow
End Sub

Save this file as an addin in your XLStart folder.

Each time you create a new workbook, open an existing workbook, change to a new
sheet, it'll set the zoom to 75%.

If you're new to macros, you may want to read David McRitchie's intro at:http://www.mvps.org/dmcritchie/excel/getstarted.htm

You can read a lot more about application events at Chip Pearson's site:http://www.cpearson.com/excel/AppEvent.htm

alex wrote:

Hello experts,


Is there a way to set Excel to open any/all workbooks/sheets at N%.


Everytime I'm given an xls doc, I end up shrinking it down to 75 or
80% to fit my screen. *I'd like Excel to automatically do this
whenever I open any xls doc.


Thanks,
alex


--

Dave Peterson


Thanks Dave; the template worked well.

alex
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
Can't Zoom LOUR Charts and Charting in Excel 0 April 19th 07 09:00 PM
Can I Set the Default Zoom Value to less than 100% RSB Excel Discussion (Misc queries) 1 April 11th 07 05:37 PM
Zoom not working? Excel Lowest Value Excel Discussion (Misc queries) 0 January 16th 07 05:12 PM
zoom in Excel Eric Excel Discussion (Misc queries) 0 June 1st 05 12:13 AM
zoom in Excel Gary Brown Excel Discussion (Misc queries) 0 May 31st 05 11:49 PM


All times are GMT +1. The time now is 09:30 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"