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

vba excel message box

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

VBA Excel Message Box

ResolvedVersion 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:

Paste a web address into the hyperlink address field

If you copy a web address the only way to paste into the address field of the hyperlink box is to use CTRL + V. Right click paste does not work.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.