vba excel message box

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA Excel Message Box

VBA Excel Message Box

resolvedResolved · High Priority · Version 2003

Michael has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Access VBA course

VBA Excel Message Box

Is it possible to rename the buttons in a message box and have a specific routine run depending on the button chosen (i.e. Rename default 'Yes' to 'Routine 1' and so forth for a total of three buttons). Would I be better placed using a series of radio buttons ? Context : Upon opening a workbook a pop up message box will ask the user which action they would like to perform.

Many Thanks.

RE: VBA Excel Message Box

Hi Michael

Thanks for your question

I think it would be better if instead of using a message box, you create a popup form with command buttons captioned Routine one, Routine two etc.

You can the call your routines from the button's on click event

Alternatively, as you suggest you could select the routine by using an option group

Regards

Stephen

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Difference between Two Dates

The DATEDIF function computes the difference between two dates. The DATEDIF function is as follows:

=DATEDIF (Date1,Date2,Interval)

Please note that Date1 must be less than (earlier) or equal to Date2

Please note that Interval must be one of the following codes: "d" (in days), "m" (in months), "y" (in years) expressed in quotes


View all Excel hints and tips


Server loaded in 0.08 secs.