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 a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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