Solved

User-Resizable Userforms in VBA, as an MS Excel 07 Macro

Posted on 2009-07-09
2
924 Views
Last Modified: 2012-05-07
I have a user form I created for an excel 07 spreadsheet to manage my data, which is launched by a command button on the spreadsheet. It would be nice if it were possible for the user (me) to resize the form while running the program. In VB6 I am use to setting the "BorderStyle" property to "sizable", however there are only two options for the VBA userform and neither give the ability to resize. Is there any way to provide the user with the option of resizing the form?

I also noticed that there are no properties to set whether the userform has a min or max button. Is there any way to add those to the form as well?

Thanks.
0
Comment
Question by:InvincibleShield
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 125 total points
ID: 24821027
Have a look at the FormFun demo here: http://www.oaltd.co.uk/Excel/Default.htm
It shows the code required for resizable forms as well as adding min/max buttons and some other stuff.
HTH
Rory
0
 
LVL 5

Author Closing Comment

by:InvincibleShield
ID: 31601948
Thanks this solution works great.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question