Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Window Resize

To "restore" a window you use code like this:

ActiveWindow.WindowState = xlNormal

To position it you use the window's Left, Top, Width and Height properties.

--
Jim Rech
Excel MVP
"Ryan" wrote in message
...
|I have a command button in a spreadsheet that opens up another spreadsheet.
I want to know how I can set it so that when the second spreadsheet opens, I
can set the size of the window it is in, or at least have it not maximized
or minimized.
|
| Ryan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Window Resize

Simply add it after the code that opens the workbook.

--
HTH

-------

Bob Phillips
"Ryan" wrote in message
...
Jim,

Thank you for the quick response. I am still confused as to how I would

write this code. Would I write it for the command button that opens the
second workbook or somewhere else? (I want it for the command button).
Also, how do I set the window's left, top, width, and height properties
through code?

Thanks
Ryan



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
Cannot Resize Workbook window Nightmry Excel Discussion (Misc queries) 4 May 12th 23 03:44 AM
Excel: Expose whole window or at least top resize handles. Reinie Excel Discussion (Misc queries) 1 August 25th 09 04:11 PM
How to resize Data Form dialog window? Compucat Excel Worksheet Functions 1 June 8th 05 11:24 PM
Need to resize a worksheet window Hasta Pasta Excel Discussion (Misc queries) 5 January 8th 05 10:49 PM
Resize the workbook window is impossible Valeria Excel Discussion (Misc queries) 1 December 29th 04 11:30 AM


All times are GMT +1. The time now is 10:52 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"