Hi folks,
For a worksheet I'm making a comment form. What it does is simply add some text to a cell the user selects. What I've been unable to figure out is how I make only the added text in red, while the rest stays the same (black). Right now it add's the text from a Textbox to a cell. It seems like a simple question but I just can't find the answer yet on the forums.
The code I'm using right now:
Thanks!
For a worksheet I'm making a comment form. What it does is simply add some text to a cell the user selects. What I've been unable to figure out is how I make only the added text in red, while the rest stays the same (black). Right now it add's the text from a Textbox to a cell. It seems like a simple question but I just can't find the answer yet on the forums.
The code I'm using right now:
Code:
Private Sub CommentButton_Click()
ActiveSheet.Unprotect Password:="***"
Set YourRange = Application.InputBox(Prompt:="Select Range", Type:=8)
YourRange.Select
ActiveCell.Value = ActiveCell.Value & vbNewLine & CommentTextBox.Value
ActiveSheet.Protect Password:="***"
End Sub
Thanks!