![]() |
Maximizing a workbook
Hi, everybody
Is there a code that maximizes a workbook when it opens? I tried this: Sub Workbook_open() Application.WindowState = xlMaximized End Sub But it only maximizes the Excel window. Any help? Thanks, Cabaco |
Maximizing a workbook
"Cabaco" wrote in message
... Is there a code that maximizes a workbook when it opens? I tried this: Sub Workbook_open() Application.WindowState = xlMaximized End Sub Hi Cabaco, Here's one way to do it: ThisWorkbook.Windows(1).WindowState = xlMaximized -- Rob Bovey, Excel MVP Application Professionals http://www.appspro.com/ * Take your Excel development skills to the next level. * Professional Excel Development http://www.appspro.com/Books/Books.htm |
Maximizing a workbook
You are close - try this...
ActiveWindow.WindowState = xlMaximized -- steveB Remove "AYN" from email to respond "Cabaco" wrote in message ... Hi, everybody Is there a code that maximizes a workbook when it opens? I tried this: Sub Workbook_open() Application.WindowState = xlMaximized End Sub But it only maximizes the Excel window. Any help? Thanks, Cabaco |
All times are GMT +1. The time now is 06:52 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com