Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

userforms

ResolvedVersion 2003

Paul has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Excel Advanced - Formulas & Functions course
Power BI Modelling, Visualisation and Publishing course

UserForms

Hi,

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

RE: UserForms

Hi Paul, thanks for your query. A command button on the worksheet needs to have a line of code attached to it to launch the interface. When you've drawn the button on the worksheet, stay in Design Mode, then double click on the button and add the following line of code

frmthenameofyouruserform.Show

Then return to the worksheet and come out of Design Mode thereby activating the button. It should now display your interface when clicked.

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.

Access tip:

Combo box for finding records

You can use a combo box in a form to look up a record. If you place the comb box in the Form header, by then selcting they a field type from the drop down loist, you will see the record for it

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.