jjfletcher
Board Regular
- Joined
- Sep 10, 2008
- Messages
- 152
Hello Everyone,
I have the below code that works great - I wanted to know what changes can be made to the code so the misspelled word is highlighted...
Any thoughts???
Regards,
John
I have the below code that works great - I wanted to know what changes can be made to the code so the misspelled word is highlighted...
Any thoughts???
Code:
Private Sub CommandButton16_Click()
Dim xCell As Range
On Error Resume Next
With ActiveSheet
Set xCell = .Cells(.Rows.Count, .Columns.Count)
End With
xCell = TextBox2.Text
xCell.CheckSpelling , , True, 1033
TextBox2.Text = xCell
xCell.ClearContents
End Sub
Regards,
John