Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 15th, 2005, 04:12 PM
Registered User
Join Date: Dec 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is there an Event for resizing the main XL window?

I am building an application that has forms that overlay the the areas above and below the workbook. If a user resizes the main XL window (smaller), my forms will appear to hang out over the desktop. Ideally, I would like to use an event (like the workbook resize event) to deal with this. Is there such an event? Alternatively, is there a way to prevent the user from being able to resize the XL window?

Reply With Quote
  #2 (permalink)  
Old December 21st, 2005, 11:22 AM
Friend of Wrox
Join Date: Jan 2005
Location: Bournemouth, Dorset, United Kingdom.
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts

Is this what you were after?

Sub Change_Excel_Size()
        Application.WindowState = xlNormal
        With Application
            .Left = 222.25
            .Top = 289.75
            .Width = 127.5
            .Height = 30.75
        End With
End Sub



Reply With Quote
  #3 (permalink)  
Old January 6th, 2006, 07:23 PM
Registered User
Join Date: Dec 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Matt, thanks for taking the time to reply.

Your solution tells how to re-size, but my burning need is to have my code know WHEN to resize, or as an alternative, how to prevent the user from re-sizing the XL app window.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing and moving new window through opener Gajender BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 2 July 22nd, 2008 08:40 AM
Auto Sizing Div Width with window resizing javs Javascript 1 March 20th, 2008 01:13 AM
Resizing Main Access Window McDiddy Access VBA 0 January 5th, 2007 04:33 AM
Forward Mouse event in Main window to its controls guntank C# 2005 0 November 15th, 2006 09:32 PM
Resizing controls in a ScrollableForm Layout Event decyclone Pro Visual Basic 2005 0 August 7th, 2006 09:44 AM

All times are GMT -4. The time now is 01:37 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.