userforms
RH

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » UserForms

UserForms

resolvedResolved · Medium Priority · Version 2003

Paul has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Excel Advanced - Formulas & Functions 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:

Hiding Multiple Table columns

If you want to hide non-adjacent Access table columns. In Datasheet view, open the table that contains the columns you want to hide.

On the Format menu, click Unhide Columns.
In the Unhide Columns dialog box, clear the check box next to the name of each column you want to hide.
Click Close.

This method makes having to use the Hide Columns command repeatedly unnecessary

View all Access hints and tips


Server loaded in 0.05 secs.