+ Reply to Thread
Results 1 to 6 of 6

Spell Check

  1. #1
    Registered User
    Join Date
    12-25-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    6

    Spell Check

    Hi,

    I have a list of cell with sentences. How do I auto-fix misspellings and Grammar using SpellCheck in Excel 2010 using VBA. I mean I can find the words easily using VBA but how to make it change all and ignore if no suggestions. When recording the macro, it is not recording that bit.

    Please help!

    Thanks,
    Akber.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Spell Check

    Hi akberali67,

    There is a CheckSpelling Method in help for VBA.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-25-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Spell Check

    Ok but what I was looking for is how to make vba pick the first suggestion and ignore if there is no suggestion.

    I know how to make vba pull up the spell check but how do you make it pick the first selection and ignore when there are no suggestions?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Spell Check

    Here's some code that worked for me:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-25-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Spell Check

    Hi,

    I can use that as an exit if no suggestions are available but how do I get the code to select the first suggestion from the dictionary?

    -Akber.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Spell Check

    This is what I've used:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1