Add a new line in a Message Box
This tutorial shows how to add a new line in a message box through the use of VBA
METHOD 1. Add a new line in a Message Box using VBA
VBA
Sub Add_New_Line_in_Message_Box()
MsgBox "Message in Line 1" & vbNewLine & "Message in Line 2"
End Sub
ADJUSTABLE PARAMETERS
Message: You can change the message in the first and second line by changing "Message in Line 1" and "Message in Line 2", respectively, in the VBA code.
Message: You can change the message in the first and second line by changing "Message in Line 1" and "Message in Line 2", respectively, in the VBA code.
EXPLANATION
This tutorial shows how to add a new line in a message box through the use of VBA.
RELATED TOPICS
Related Topic | Description | Related Topic and Description |
---|---|---|
Create a Message Box | How to create a message box through the use of VBA | |
Message Box referencing to a cell | How to create a message box and display a value that is captured in a specific cell through the use of VBA |