Article ID: 141513
Article Last Modified on 10/11/2006
Workbooks("MyBook.xls").Worksheets("Sheet1") _
.Range("A1:B5").Value = _
var1 + 3.14159
You cannot break statements in the middle of a keyword value or a text
string. If you are using a long text string and need to continue the line,
you can break the string into two strings and use a combination of the
concatenation operator (&) and the line-continuation character, as shown in the following example:
var1 = "This is a long string that we are going to break" MsgBox var1 var1 = "This is a long string th" & _ "at we are going to break" MsgBox var1
Additional query words: XL97 XL98 XL7 XL5
Keywords: kbhowto kbprogramming kbdtacode KB141513