Create a Dialog Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all. I cant seem to find info on how to create a dialog box. When a user clicks on a command button I would like to have a dialog box appear with instructions and an OK button

TI
 
Hi
have a look at
msgbox
in the VBA help
-----Original Message-----
Hi all. I cant seem to find info on how to create a
dialog box. When a user clicks on a command button I would
like to have a dialog box appear with instructions and an
OK button.
 
You would use a Userform in Excel 97 or later. Here are some resources:

http://www.microsoft.com/ExcelDev/Articles/sxs11pt1.htm
Lesson 11: Creating a Custom Form
Excerpted from Microsoft® Excel 97 Visual Basic® Step by Step.

http://support.microsoft.com/?id=168067
XL97: WE1163: "Visual Basic Examples for Controlling UserForms"

Microsoft(R) Visual Basic(R) for Applications Examples for Controlling
UserForms in Microsoft Excel 97

This Application Note is an introduction to manipulating UserForms in
Microsoft Excel 97. It includes examples and Microsoft Visual Basic for
Applications macros that show you how to take advantage of the capabilities
of UserForms and use each of the ActiveX controls that are available for
UserForms


--
Regards,
Tom Ogilvy


Chas said:
Hi all. I cant seem to find info on how to create a dialog box. When a
user clicks on a command button I would like to have a dialog box appear
with instructions and an OK button.
 
You can create one of 3 things

1. a Msgbox, a simple info box with specified buttons the user can click

2. an Inputbox, like Msgbox, but user inputs a response, and only OK Cancel
buttons

3. A userform where you can create whatever controls and labels you desire./

Which suits best?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Chas said:
Hi all. I cant seem to find info on how to create a dialog box. When a
user clicks on a command button I would like to have a dialog box appear
with instructions and an OK button.
 

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

Back
Top