how can I wrap text in a message box?

Reddist

New Member
Joined
Jul 28, 2005
Messages
12
Hiya. I hope there is an easy answer to this... it seems there should be!

I have a message box that pops up to tell the user to do something, but it comes out as one LONG sting of text that stretches all the way across the screen. Is there a way I can wrap this?

I know I can turn it in to a form instead of a message box, but it seems to me there should be an easier way to do it.

Thanks!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Excelenator

Board Regular
Joined
Jul 30, 2006
Messages
154
I don't know of an automated way to do this, however you can insert vbcrlf into your text to force a new line of text.

"All I want to do is" & vbcrlf & "make the text wrap."

Will appear as

All I want to do is
make the text wrap.

in the message box
 

Forum statistics

Threads
1,136,704
Messages
5,677,297
Members
419,684
Latest member
BOB101

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top