msgbox maximum character

Novice_excel

New Member
Joined
May 17, 2010
Messages
17
Greetings All,

I just realize that there is a maximum number of character a standard 'msgbox' command will handle.

Is there anyway to activate the scroll bar on the msgbox so the user can 'see' the rest of the information?

Thanks!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Greetings All,

I just realize that there is a maximum number of character a standard 'msgbox' command will handle.

Is there anyway to activate the scroll bar on the msgbox so the user can 'see' the rest of the information?

Thanks!
In Excel 2003 the max character count for a msgbox is 1024. Not sure if that's changed for 2007 and/or 2010. In any case, if you need to exceed the limit consider a user form or break the message into parts and use more than one msgbox.
 
Upvote 0
Or create a simple userform with a label to use in lieu of msgbox.
 
Last edited:
Upvote 0
Hello SHG,

Can I use a variable with the userform's label?

Also, if there are too many characters, will it introduce a scroll bar on the side?

Thanks!
 
Upvote 0
You can put anything you want in a label or a textbox.

No scroll bar with a label, but yes, if you use a textbox.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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