![]() |
Centering MsgBox text
Is there a way to center the prompt text in a MsgBox?
|
Centering MsgBox text
Hi Patrick,
Patrick wrote: Is there a way to center the prompt text in a MsgBox? No, not really. You could use the Space$ function to pad the beginning of the string with spaces, but that would require some trial and error to find the correct length. Plus, if a user has a different standard font than you, it may not appear as expected on his/her machine. The best way would be to create your own UserForm that looks/acts like a MsgBox. You could drop a label control on it and center the text that way. -- Regards, Jake Marx MS MVP - Excel www.longhead.com [please keep replies in the newsgroup - email address unmonitored] |
Centering MsgBox text
Thanks Jake, that makes perfect sense!
|
All times are GMT +1. The time now is 10:36 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com