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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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
 
Upvote 0

Forum statistics

Threads
1,217,764
Messages
6,138,467
Members
450,140
Latest member
myexcel202424

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
Back
Top