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

msgbox

ResolvedVersion 2007

Bryan has attended:
Excel VBA Intro Intermediate course

MsgBox

How can you center the display text on a msgbox

RE: MsgBox

Hi Bryan

Thanks for your question

I have carried out an initial study of this problem and can find no simple solution. I am however sure that I have resolved this issue before, I will therefore make further studies and will respond definitively within the next few days

Regards

Stephen

RE: MsgBox

Thanks Stephen, I shall await your reply.

RE: MsgBox

Hi Bryan

Thanks for your patience

I'm afraid I can find no way to centre the text in the message box in VBA. All the sources I have checked suggest that it is impossible. I will continue looking into it and if I find anything I will follow up.

One possbility would be to add some blank spaces either side of the message. This is a bit cluncky but should work

Regards

Stephen

RE: MsgBox

Many thanks Stephen, ill pad it out as you suggested.

 

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:

Quick Absolute Cell References

When entering cell references in a formula you probably click the cell, or you may type in the cell reference. If you require any of the 4 variations, press the F4 key now before you press Enter to toggle around the relative and absolute entries ($signs).

Note that the F4 key outside of editing a formula is the Repeat key to repeat a previous action.

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.