Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Excel Window Zoom Problems

There may not be an active window when you code runs, it this is happening
when Excel starts. Maybe a little delay will help:

Sub Auto_Open()
Application.OnTime DateAdd("s", 1, Now), "ZoomIt"
End Sub

Sub ZoomIt()
ActiveWindow.Zoom = 115
End Sub


--
Jim Rech
Excel MVP
"Randy Chow" wrote in message
...
IT Fired Up.ComGood day everyone. I was wondering if someone can give me a
pointer as to why the below routine errors out when put into a .xla Add-In.
I want this Add-In to autorun and change the Zoom value to 115%. I get the
following error "Object Variable or With Block Variable Not Set". Thanks
for everyones support.

Sub Auto_Open()

Worksheets("Sheet1").Activate
ActiveWindow.Zoom = 115

End Sub



Randy Chow - BSc. of Science, MCSE, MCDBA, CCNA, A+, NetCERT+
IT Fired Up.Com
Phone Number: (403) 605-5575
Email:

IT Fired Up.Com
Copyright © 2003
Email:




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
Setting the zoom size of a new window from 100% to 75% MongoMan Excel Discussion (Misc queries) 0 June 18th 08 11:30 PM
Problems with Live Window preview Graham Walton Excel Discussion (Misc queries) 0 November 5th 07 09:56 PM
VBE Window Docking Problems Todd Htutenstine Excel Programming 3 May 11th 04 06:09 PM
application.screenupdating problems and IE browser window belinda Excel Programming 0 September 17th 03 12:00 PM


All times are GMT +1. The time now is 12:14 AM.

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"