Guest User

Untitled

a guest
Oct 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. strWord = "read"
  2.  
  3. lPos = InStr(1, Write_code.Text, strWord, vbTextCompare)
  4.  
  5. If lPos > 0 Then
  6. With Write_code
  7. .SelectionStart = lPos - 1
  8. .SelectionLength = Len(strWord)
  9. .SelectionColor = Color.Green
  10. .SelectionStart = Len(Write_code.Text)
  11. .SelectionLength = 0
  12. .SelectionColor = Color.Blue
  13. End With
  14. End If
  15.  
  16. End Sub
Add Comment
Please, Sign In to add comment