Display a Custom Dialog Box

B

BHatMJ

I have a button on a worksheet created from the Forms toolbar. I'd like to
display a dialog box if this button is clicked but am having trouble showing
the dialog box from a subroutine in a module. Can anyone point me in the
right direction?
 
B

Bob Phillips

Do you mean a custom userform? If so, just

Userform1.Show

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

BHatMJ

Yes, it's a custom userform. I changed the name of the form to "dlgHelp".
Using the command dlgHelp.Show did not work. However, I re-created the form
and did not rename it and, surprisingly, Userform1.Show works. Thanks for
the help.
 
B

Bob Phillips

If you rename it now, does it still work?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top