Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXCEL Dialog Box

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm currently writing a small bugeting program for Excel. I wish to add a macro to a dialog box, However I don't know how to set-up in the dialog box in a presentable manner. The macro will run a help info dialog box with information and then a cancel or Ok button.

I can record and assign the macros, however, I can't set-up the dialog box. The dialog box should look like standard Excel dialog boxes. (I'm running Excel 2000, I know excel fairly well, however I don't use Visual basic)

Please help.

Thanks,

Darren Greenan
 
Go to the VB Editor and add a form. Put all of controls on it. Then, to assign a custom button a macro, create a subroutine to show the form:
Code:
Sub ShowHelpForm()
    frmHelp.Show
End Sub
Then, on the button commands:
Code:
Sub cmdOK_Click()
    Unload Me
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top