G
Guest
Hi, I want to join some variables together into a string and write it to
word, and if say a variable is < 0 I want it to be red. How can I do this?
This is the code I am trying to use:
Set wPar = wDoc.Paragraphs.Add
strText = "This is the lead"
strText = strText & "This is the string I want to apply formatting to in the
middle of the sentence"
strText = strText & "This is the end of the sentence."
With wPar.Range
.Text = strText
.Font.Name = "Arial"
.Font.Size = 8
.Bold = False
End With
word, and if say a variable is < 0 I want it to be red. How can I do this?
This is the code I am trying to use:
Set wPar = wDoc.Paragraphs.Add
strText = "This is the lead"
strText = strText & "This is the string I want to apply formatting to in the
middle of the sentence"
strText = strText & "This is the end of the sentence."
With wPar.Range
.Text = strText
.Font.Name = "Arial"
.Font.Size = 8
.Bold = False
End With