Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Align text centre in MsgBox

Status
Not open for further replies.

millrat

Technical User
Dec 23, 2003
98
US
Hi,
How do I align text centre in a MsgBox?

e.g.

ans = MsgBox("Clicking this button will start World War III" & vbCrLf & "Do you want to continue?", vbYesNo, "Doomsday Device")

This aligns the text to the right.

Anyone?

Thanks
millrat
 
Hi, millrat,

No way that I know of in a MsgBox. However, you can build a modal form that looks and acts just like a MsgBox and format it any way you like.

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top