Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
42 42 is offline
external usenet poster
 
Posts: 2
Default Opening a workbook with a specified size?

Hello everyone,

Is there a way to program a workbook to always open in a specific
window size?

Thanks for any help,
~Jonathan

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Opening a workbook with a specified size?

To code something to happen when you open a workbook, take a look at
Workbook_Open in the VBA help

OR

See the various 'Open Events' at Chip Pearson's site:
http://www.cpearson.com/excel/events.htm

As far as the sizing of the window:
Application.WindowState = xlNormal
Application.Width = 717
Application.Height = 487.5

HTH--Lonnie M.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Opening a workbook with a specified size?

See below: but if you want to ensure that the window size (actual inches) is
consistent regardless of the user's display properties (screen resolution)
that is a much more difficult question.

Private Sub Workbook_Open()

Application.WindowState = xlNormal
Application.Width = 500
Application.Height = 300

End Sub


"42" wrote:

Hello everyone,

Is there a way to program a workbook to always open in a specific
window size?

Thanks for any help,
~Jonathan


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening a workbook with a specified size?

Thanks, K Dales. That's exactly what I'm looking for. How do I go about
ensuring a user of the network will open the workbook at a specified
resolution. Does the solution you offered do that?

~Jonathan

*** Sent via Developersdex http://www.developersdex.com ***
  #5   Report Post  
Posted to microsoft.public.excel.programming
42 42 is offline
external usenet poster
 
Posts: 2
Default Opening a workbook with a specified size?

Thanks, Lonnie. I appreciate your swift reply.

~Jonathan

Ps: I'll let you guys know if it works over the network ;)

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
How do I stop blank workbook from opening when opening an existing kjg Excel Discussion (Misc queries) 3 February 12th 10 09:36 PM
can i size an Excel workbook window's opening size? ncjenny Excel Discussion (Misc queries) 0 November 12th 06 04:03 PM
excel VBA problem - setting workbook as variable & opening/re-opening safe Excel Programming 1 August 20th 04 12:22 AM
How to make the opening of a workbook conditional upon the opening of another workbook Marcello do Guzman Excel Programming 1 December 16th 03 06:09 AM
How to make opening of workbook conditional of opening of another workbook turk5555[_2_] Excel Programming 2 December 15th 03 11:07 PM


All times are GMT +1. The time now is 12:32 AM.

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

About Us

"It's about Microsoft Excel"