Center text in a msgbox

J

Jessica

Does anyone know of a way to center the text in a message
box?

I have three lines and I want a return after each line,
but I also want them all centered not left justified.

Thanks!

Jessica
 
T

Tim Ferguson

I have three lines and I want a return after each line,
but I also want them all centered not left justified.

Formatting in a MsgBox is extremely limited. If you want anything, it's
very easy to create your own: start with a small unbound form, put on a cmd
button (to close it with) and a label. The Form_Open event can look at the
OpenArgs method and put the text into its label before it is visible. The
calling code then uses DoCmd.OpenForm with acDialog and the desired text in
the last parameter.

Hope that helps


Tim F
 

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

Top