assigning command buttons userfo

Forum 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

resolvedResolved · 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 courses

 

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Creating charts in Excel 2010

Here's how to present your data in a chart format:

Highlight the data you wish to use in a chart

Click the Insert Ribbon

In the Charts Group, select Column Chart

Your chart will then appear on your work sheet.

View all Excel hints and tips


Server loaded in 0.07 secs.