Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8019075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:16:46+00:00 2026-06-04T21:16:46+00:00

This little Excel VBA function always returns false, no what word is passed in.

  • 0

This little Excel VBA function always returns false, no what word is passed in.

Function SpellCheck(SomeWord As String)

SpellCheck = Application.CheckSpelling(SomeWord)

End Function

In fact, in the IDE I can verify that Application.CheckSpelling(“hello”) fails, though the Excel spellchecker does detect misspellings.

What I’m trying to do is get a T/F value for each word if it is spelled correctly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:16:47+00:00Added an answer on June 4, 2026 at 9:16 pm

    Like I mentioned in my comment it works.

    Option Explicit
    
    Sub Sample()
        MsgBox SpellCheck("hello") '<~~ Returns True
        MsgBox SpellCheck("daasd") '<~~ Returns False
    End Sub
    
    Function SpellCheck(SomeWord As String) As Boolean
        SpellCheck = Application.CheckSpelling(SomeWord)
    End Function
    

    Application.CheckSpelling will not correct or offer to correct a misspelled word, it only returns True or False

    I tested

    ?Application.CheckSpelling("hello")

    in immediate window and it returned True

    EDIT: Calling Application.CheckSpelling from UDF would always return False. Last time I checked, it was still a bug and there was no way around it. If there is a recent update on that then I am not aware of it. 🙂

    MORE EDIT

    Here is your function slightly modified which will work as a UDF as well 🙂

    Got the idea from this link

    Function SpellCheck(rng As Range) As Boolean
        Dim oxlAp As Object
        Set oxlAp = CreateObject("Excel.Application")
        SpellCheck = oxlAp.CheckSpelling(rng.Value)
        oxlAp.Quit
        Set oxlAp = Nothing
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey I have this little javascript bookmark javascript:(function(){ window.open('http://www.mywebsite.com/index.php?currentsite#bookmark'); })() How can I get
I have written a little Excel VBA report tool for my iPhone App sales.
Using Access 2007 vba addressing an Excel 2007 workbook (WB).... This routine adds a
I wrote a little script that exports certain Excel cell values into Word. However,
This little gem is giving me a bit of a headache. Let's say I
This little OpenLayers.Control.EditingToolbar from is inserted by default: It's not really evident what these
This little bit of syntax has been a bit of a confusion for me
Given this little piece. http://jsfiddle.net/4gb6K/7/ I am attempting to align the bot element at
Given this little fiddle: http://jsfiddle.net/5Sw3h/8/ I have a navigation panel to the left, a
I am writing this little python program that will get new posts on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.