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

userform

ResolvedVersion 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

Excel tip:

Moving between Worksheets without using the mouse

Use the 'Ctrl+PgDn' and 'Ctrl+PgUp' keys.

'Ctrl+PgDn' will move to the right and 'Ctrl+PgUp' will move to the left one worksheet at a time.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.