ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Create a Dialog Box (https://www.excelbanter.com/excel-programming/297061-create-dialog-box.html)

Chas

Create a Dialog Box
 
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



Frank Kabel

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

TIA


.


Tom Ogilvy

Create a Dialog Box
 
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" wrote in 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.

TIA





Bob Phillips[_6_]

Create a Dialog Box
 
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" wrote in 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.

TIA






All times are GMT +1. The time now is 11:16 AM.

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