|
-
April 30th, 2009, 02:59 PM
#2
Re: several colors in an RTB (rich text box)
I fixed it---just re-sequenced some of my steps. Here it is, also cleaned up a bit
Public Sub rtbAppendText(NuText As String, Color As Long)
Dim oldLen As Long
On Error Resume Next
With rtbCmdLog 'this is the name of the rich tecxt box being used
oldLen = Len(.Text)
.SelStart = oldLen
.SelColor = Color
.SelText = .SelText & NuText
End With
End Sub
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|