ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Maximize Excel (https://www.excelbanter.com/excel-programming/290997-maximize-excel.html)

ianripping[_34_]

Maximize Excel
 
When I open an excel document from a local webpage, the document open
up in a normal window, not maximized.

I tried inputing this code into the workbook module: -

Private Sub Workbook_Open()

Application.WindowState = xlMaximized
End Sub


But it was still opening in a normal window.
Am I doing anythign wrong

--
Message posted from http://www.ExcelForum.com


Ulrik Gustafsson

Maximize Excel
 
Hi

Try this instead in your Workbook_Open procedu
ActiveWindow.WindowState = xlMaximized

The Excel document window will be maximized when you open the workbook. I
think this will do the trick.

HTH
/Ulrik


"ianripping " wrote in message
...
When I open an excel document from a local webpage, the document opens
up in a normal window, not maximized.

I tried inputing this code into the workbook module: -

Private Sub Workbook_Open()

Application.WindowState = xlMaximized
End Sub


But it was still opening in a normal window.
Am I doing anythign wrong?


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 01:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com