Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS EXCEL User Forms - Text Box Object - Text Spelling 1

Status
Not open for further replies.

hafod

Technical User
Joined
Mar 14, 2005
Messages
73
Location
GB
Hi,
Ive programmed an existing spreadsheet application to use an Excel User Formform as a means of user friendly data access (like Forms in MS Access)with good data validation across a range of data types. The forms works fine and I can successfully add/delete/amend undeling 'Field' data. However, one 'Field', the comment field - txtComments.Text requires to be spell checked by the user before the entry/change is comitted. Can I call up a routine, maybe a Windows call to do this ? Is this possible because there is no obvoius access to this facility - despite reading Excel VBA books!. This feature IS important because external reports will be generated when the data is subsequetly exported to the host system for output. I am using Excel2002 SP3
Hope you can help!
Many thanks
Mike
 
Try the following:-

If (Application.CheckSpelling(txtComments.Text) = True) Then
MsgBox ("spelling OK")
Else
MsgBox ("spelling error")
End If
 
Hi Tomreid
Many thanks for your helpful suggested code - works fine! Much appreciated.
Best regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top