ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Display a Custom Dialog Box (https://www.excelbanter.com/excel-discussion-misc-queries/188129-display-custom-dialog-box.html)

BHatMJ

Display a Custom Dialog Box
 
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?

Bob Phillips

Display a Custom Dialog Box
 
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)



"BHatMJ" wrote in message
...
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?




BHatMJ

Display a Custom Dialog Box
 
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.


"Bob Phillips" wrote:

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)



"BHatMJ" wrote in message
...
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?





Bob Phillips

Display a Custom Dialog Box
 
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)



"BHatMJ" wrote in message
...
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.


"Bob Phillips" wrote:

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)



"BHatMJ" wrote in message
...
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?








All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com