Results 1 to 4 of 4

Thread: [RESOLVED] Spell checker needed

  1. #1

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237

    Resolved [RESOLVED] Spell checker needed

    I need a function which takes a word and returns true if it is spelt correctly and false if it isn't.

    Seems simple enough but all the M$ Word based samples I've seen prompt to correct.

    The must be this functionality deep within Word somewhere because of the way it auto highlights incorrect spellings....



    Thanks
    Another light-hearted post from Guru

  2. #2
    Lively Member nateobot's Avatar
    Join Date
    Feb 2002
    Location
    Minneapolis, Minnesota
    Posts
    71

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Spell checker needed

    The CheckSpelling function of MS Word will spellcheck single words as well as the entire document. When you pass it a word it simply returns True or False, no correction or prompts are given.

    VB Code:
    1. Dim oWord As Word.Application
    2.     Dim blnSpell As Boolean
    3.    
    4.     Set oWord = New Word.Application
    5.     blnSpell = oWord.CheckSpelling("Teest")
    6.     If Not blnSpell Then
    7.          msgbox "'Teest' is not spelled correctly."
    8.     End If
    9.     oWord.Quit False
    10.     Set oWord = Nothing

  4. #4

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237

    Re: Spell checker needed

    Thanks brucevde!

    That's just what I needed.
    Another light-hearted post from Guru

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width