![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
When using visual basic to generate a message box, how do you specify the size of the box?
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
You don't. VB resizes it automatically. If you need to control this, you need to create a UserForm.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 468
|
You can also split a text in 2 lines :
instead off : msgbox "line 1 and line 2" use : msgbox "line 1" & vbLF & "and line 2" The text of the messagebox will now be splitted in two, and the msgbox will be smaller. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|