NickDC1964
New Member
- Joined
- Mar 23, 2018
- Messages
- 3
I'm trying to create a spreadsheet for a client that will automatically size itself to a specific size when it is opened. I've googled a dozen things, none of which seem to work. The most common seems to be this code:
Sub SetWindowSize1()
Application.WindowState = xlNormal
Application.Top = 25
Application.Left = 25
Application.Width = 300
Application.Height = 200
End Sub
But Excel hangs up every time. All I need is for the spreadsheet to resize its own window to a set size that I pick when it opens. Any suggestions?
Sub SetWindowSize1()
Application.WindowState = xlNormal
Application.Top = 25
Application.Left = 25
Application.Width = 300
Application.Height = 200
End Sub
But Excel hangs up every time. All I need is for the spreadsheet to resize its own window to a set size that I pick when it opens. Any suggestions?