How to center text in a msgbox

  • Thread starter Thread starter Dave_2k5
  • Start date Start date
D

Dave_2k5

I have got a message box which I want two lines of text on.

I am using chr(13) for the carrage return, but would like to centre th
text in the message box.

Can thie be done???

Cheers,

Dav
 
A standard messagebox will not allow you to specify text alignment: you are
stuck with left justification. If you need or want better formatting options
you could create a userform instead.
 
hi,
the message box supplied with vb is not formatable so you are sort of stuck
with it.
you can play head games with it by adding spaces to your text for a psudo
centering.
it may take a little playing with to get it right but it is a technique i
have used in the past.

regards

FSt1
 

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