I want to perform spell check on a specific text box on command click. I found this question which gave me the answer:
So I have this code:
Dim X As Object
Set X = CreateObject("Word.Applica
X.Visible = False
X.Selection.Text = CheckWhat.Text
CheckWhat.Text = X.Selection.Text
MsgBox "Spell check is complete.", vbOKOnly, "Spell Check Complete"
Set X = Nothing
Which works great. Except, if the user clicks Cancel on the spell check window it dumps into word showing the text from the text box. How can I prevent this? I want Cancel to just cancel, do nothing else, show nothing else.