98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Assigning Command buttons to userform in 2003 | Excel forum
Assigning Command buttons to userform in 2003 | Excel forum
Resolved · Medium Priority · Version 2003
Martin has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Assigning Command buttons to userform in 2003
Hi,
I was recently on the VB course using Excel 2007. Now I am back at work I am using 2003. How do I link a command button in Excel 2003 to a UserForm in VB? I can easily select Macros to run, but I want the command button to launch the interface.
Thanks
RE: Assigning Command buttons to userform in 2003
Hi Martin, thanks for your query. On our course our interface was called "frmMainInterface". When you have created the button on the spreadsheet, try double clicking on it (this will only work if you are in Design Mode). A click event subroutine will be created and the line of code you need would be:
frmMainInterface.Show
Back on the worksheet, activate the switch by coming out of Design Mode. It should be working now.
Hope this helps,
Anthony
Mon 10 Jan 2011: Automatically marked as resolved.
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Creating charts in Excel 2010Here's how to present your data in a chart format: |