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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - Fixed Window Size 1

Status
Not open for further replies.

cwsstins

MIS
Aug 10, 2004
412
US
Is it possible to create a setting in Excel that will force the file to open with a standard, fixed window size, regardless of how the file would normally open on various PCs?

Thanks,
stinsman
 
The workbook:- Try setting the size you want it to be, then Tools / Protection / protect workbook / protect windows & structure

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Thanks Ken...that definitely works for the workbook...the only problem is the application itself still opens in whatever size was last used, with a fixed workbook window within. I suppose I can work with that, but I was hoping to find a way to fix the actual application window as well. Any suggestions?

Thanks,
stinsman
 
Code:
Private Sub Workbook_Open()
    With Application
        .WindowState = xlNormal
        .Width = 400
        .Height = 500
    End With
End Sub

Regards
Ken..........

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
You're welcome :)

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top