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 Access VBA Training and help » UserForms
UserForms
Resolved · 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 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. |
Access tip:Hiding Multiple Table columnsIf you want to hide non-adjacent Access table columns. In Datasheet view, open the table that contains the columns you want to hide. |