userform

Forum home » Delegate support and help forum » Microsoft Excel Training and help » UserForm

UserForm

resolvedResolved · High Priority · Version 2010

Jay has attended:
Excel Intermediate course
Excel Advanced course

UserForm

On a user form i have 2 questions.

Is there a quick way to call it?
I.E for my other marco's i have CTRL + A ect...
when i go to :
Developer
Macros
Select the One
Options
ShortCut Key

I would like to do this for my user form i have created how would i do this?

at the top of the marco its

Sub cmdCloseForm_Click()
Unload Me
End Sub

if this helps.


Also is it possible to have a text box come up after the userform is run as a reminder to do something? I know you can on a normal macro.

Regards

Jay

RE: UserForm

Hi Jay

To start the form with a button or shortcut key you'll have to create a separate macro in a normal module, for example

Sub StartForm
FormName.Show
End Sub

(where FormName is the name of your user form).

You can then assign a shortcut key to the StartForm macro from Macros, Options

To add a textbox after the form is run

Add the line
Msgbox "Please complete this form then press ok"
before FormName.Show

Hope that works on your form.

Regards
Doug
Best STL

RE: UserForm

brilliant thanks done works complete

 

Training courses

 

Training information:

See also:

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:

Get back to active cell

If you have scrolled away from the active celland want to get back t it quicly you can Ctrl and Backspace to get back

View all Excel hints and tips


Server loaded in 0.08 secs.