Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel resize on open

Status
Not open for further replies.

timotai

Technical User
Apr 13, 2002
119
0
0
GB
Hi all

is there a way I can make an excel spreadsheet resize to fit the screen resolution on the PCit is being opened on. This is because the users who will pick up this spreadsheet have varying resolutions.

Thanks

Tim
 
Have you tried

Private Sub Workbook_Open()
ActiveWindow.WindowState = xlMaximized
End Sub
 
I think there is a bit of confusion with what I want. it is the zoom on the worksheet that I want to change. I want it to adjust to fit all of my data on my spreadsheet into the screen so the user does not have to scroll to see any of it.

Thanks

Tim
 
You got me onto the right track though so thanks. I have found my solution :


ActiveWindow.Zoom = False


Now my other question is it possible to run this at start up like an autoexec?

Thanks

tim
 
Tim
Add your code to the workbook open event as Zygor did.

If you don't know about events you could have a look at SkipVought's FAQ - faq707-1945

;-)
If a man says something and there are no women there to hear him, is he still wrong? [ponder]
How do I get the best answers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top