Results 1 to 2 of 2
  1. #1
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,449
    Thanks
    1
    Thanked 1 Time in 1 Post

    Spell Checking and Error Handeling (XL 97 and >)

    <img src=/S/hello.gif border=0 alt=hello width=25 height=29> Folks

    I am asking the user to enter a bunch of words, and then I need to spell check these words.

    Could I trap any errors if i find a misspelled word?

    To me it seems that the spell checker takes control until it finishes???

    Thanks in advance...

    Wassim <img src=/S/compute.gif border=0 alt=compute width=40 height=20>
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

  2. #2
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Spell Checking and Error Handeling (XL 97 and >)

    Just use syntax 2 of the CheckSpelling method in the worksheet change event:<pre>Option Explicit
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Application.CheckSpelling(Target.Value) Then _
    MsgBox "FixIt"
    End Sub</pre>

    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

Posting Permissions

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