|
-
Jan 18th, 2006, 10:29 AM
#1
Re: Advanced VB/Office Guru™ SpellChecker™
If your using Access only then you dont need any of the code other then using Access' built in spell checking.
VB Code:
Private Sub SpellMe()
Application.DoCmd.RunCommand acCmdSpelling
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 18th, 2006, 10:41 AM
#2
Hyperactive Member
Re: Advanced VB/Office Guru™ SpellChecker™
Sorry, getting confused in my old age, anyway the problem with that is it automatically checks the whole form which I don't want, as the form in question is huge.
Currently I spell check like so.
VB Code:
Public Function Spellcheck(TextStr As String) As String
Set WordApp = CreateObject("Word.Application")
WordApp.Documents.Add
Dim wordrange As Word.Range
Set wordrange = WordApp.ActiveDocument.Range(0, 0)
wordrange.Text = TextStr
WordApp.Visible = True
WordApp.Activate
wordrange.CheckSpelling , , True
wordrange.CheckGrammar
Spellcheck = wordrange.Text
wordrange.Text = ""
WordApp.Documents.Close (False)
WordApp.Quit
Set WordApp = Nothing
End Function
But this has odd glitches which I was hoping your code would sort out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|