excel learn london - msgbox

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel learn london - MsgBox

excel learn london - MsgBox

resolvedResolved · Low Priority · Version Standard

Neil has attended:
Excel VBA Intro Intermediate course

MsgBox

What code do I use to get the message across more than one line in the box?

RE: MsgBox

Hi Neil,

To extend the message within a msgbox, you add the following VBconstants in between the text message:

vbCrLf [to insert Carriage Return + Linefeed]
vbLf [to insert Soft Carriage Return + Linefeed]
vbCr [to set a new line]
vbTab [to insert a tab]
vbBack [to Backspace]

Hope this helps.

Regards,

Katie

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Brighten up your Excel 2010 Spreadsheet by changing the colours of the gridlines

Excel 2010 allows you to change the colour of grid lines instead of keeping them in boring black.

Select the File tab on the Ribbon, click Options, click Advanced, scroll down to ''Display options for this worksheet.'' Next to ''Gridline colour,'' choose your favourite colour, then once you've done this, click OK. Easy!

View all Excel hints and tips


Server loaded in 0.11 secs.