ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   center a message (https://www.excelbanter.com/excel-programming/326446-center-message.html)

JT[_2_]

center a message
 
I know I can use Chr (10) to put a carriage return in a
msgbox and start a new line in the message.

Is there a way to center the words on a line in the msgbox?

Everything sentence is left justified and I would like to
center some of the sentences.

Thanks for the help.....

Tom Ogilvy

center a message
 
Only by padding it on the left with spaces and even then it would be a guess
with a proportional font.

--
Regards,
Tom Ogilvy

"JT" wrote in message
...
I know I can use Chr (10) to put a carriage return in a
msgbox and start a new line in the message.

Is there a way to center the words on a line in the msgbox?

Everything sentence is left justified and I would like to
center some of the sentences.

Thanks for the help.....




mook

center a message
 
chr(9)


-----Original Message-----
I know I can use Chr (10) to put a carriage return in a
msgbox and start a new line in the message.

Is there a way to center the words on a line in the

msgbox?

Everything sentence is left justified and I would like to
center some of the sentences.

Thanks for the help.....
.



All times are GMT +1. The time now is 05:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com