I am populating a textbox line by line depending on the property of a value.
<code>If conditionA Then
Test.TextBox1.Value = Test.TextBox1.Value + vbLf + ValueA
Else
Test.TextBox1.Value = Test.TextBox1.Value + vbLf + ValueA
End If
</code>
<code>If conditionA Then
Test.TextBox1.Value = Test.TextBox1.Value + vbLf + ValueA
Else
Test.TextBox1.Value = Test.TextBox1.Value + vbLf + ValueA
End If
</code>
If conditionA Then
Test.TextBox1.Value = Test.TextBox1.Value + vbLf + ValueA
Else
Test.TextBox1.Value = Test.TextBox1.Value + vbLf + ValueA
End If
This will produce a textbox which looks something like
<code>ValueA
ValueA
ValueB
ValueA
</code>
<code>ValueA
ValueA
ValueB
ValueA
</code>
ValueA
ValueA
ValueB
ValueA
I would like to style all lines that contain ValueA
bold and all lines that contain ValueB
italic and grey.
Is that possible somehow?
Thank you
Alex