| Code: Add this code to the command button: Private Sub Command1_Click() Text1 = SpellCheck(Text1) End Sub Add this code to the form's General Declarations procedure: Public Function SpellCheck(ByVal IncorrectText$) As String Dim Word As Object, retText$ 'on error resume next Set Word = CreateObject("Word.Basic") With Word .AppShow .FileNew .Insert IncorrectText .ToolsSpelling .EditSelectAll retText = .Selection$() SpellCheck = Left$(retText, Len(retText) - 1) .FileClose 2 Show End With Set Word = Nothing End Function |
Word Spelling 2 |
Freelance ASP PHP web development | Web developer India Web development India| Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design