| You have to have the Word8 library selected.In the module: Dim wdApp As Word.Application Dim retText As String Private Sub btnSpell_Click() 'on error resume next Call SpellCheck(Memo.Text) Memo.Text = retText Me.Show End Sub Public Function SpellCheck(ByVal IncorrectText As String) As String 'on error resume next Set wdApp = New Word.Application With wdApp.Application .Visible = True .WindowState = wdWindowStateMaximize .Documents.Add .Selection.InsertAfter IncorrectText If cmbTextLanguage = "ENG" Then 'I am using various lanugages .Selection.LanguageID = wdEnglishUK End If .ActiveDocument.CheckSpelling .Selection.WholeStory retText = (.Selection.FormattedText) retText = left$(retText, Len(retText) - 1) .Documents.Close 0 .Quit Show End With Set wdApp = Nothing End Function |
Word Spelling 1 |
Freelance ASP PHP web development | Web developer India Web development India| Prayagasoft - web designer India, Ecommerce developer india, Ecommerce design