ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
KWKeaton Warn29/06/2018

I have a message box that requires several long lines. Here is the example - it's all one line in the code though. As you can see, it's rather long for just one line.

MsgBox ("This drawing does not appear to have a revision letter. Make sure the Revision Block is properly updated and that the correct revision letter is in the Revision custom property field. After the revision letter has been corrected, please try again.") & vbNewLine & vbNewLine & ("Remember, sometimes the Revision custom property link is disturbed by manual input and must have the current revision letter manually entered before it automatically updates with the revision block again." & vbNewLine & vbNewLine & "Check the PDF folder for this file name without a revision letter.")

Is there an easy way in VBA to wrap a long text string into multiple lines in the code so I don't have to scroll so far to the right to modify it?