Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
maximizing a window kevink Excel Discussion (Misc queries) 1 January 20th 09 09:43 AM
maximizing workbook mzwayne Excel Discussion (Misc queries) 4 September 11th 08 04:10 PM
Sub-window not moving or maximizing? MTAR Excel Discussion (Misc queries) 2 February 24th 07 01:41 PM
Profit Maximizing Using Solver johnnie Excel Discussion (Misc queries) 0 October 18th 05 03:13 AM
Maximizing width of graph Fred Smith Excel Programming 1 February 22nd 04 06:17 PM


All times are GMT +1. The time now is 08:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"