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 1089779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:16:29+00:00 2026-05-16T23:16:29+00:00

How could I create a macro that would check each cell of column A,

  • 0

How could I create a macro that would check each cell of column A, find the words that are not in the defined dictionary, and write them (separated by space) in the next cell. In the picture below you can see an example of the worksheet after that macro was completed.

alt text

The complete idea was to get a (varchar) column from a database and use excel to spell check it. The next step would be to send an e-mail to the user in charge, containing the rows that contain at least one word in column B (along with the column id, of course). I think that I could do the rest of the work, except this step of getting the erroneous words. If you can think of another idea to spell check a db column, I would be grateful if you shared it with me. Thanks.

  • 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-05-16T23:16:30+00:00Added an answer on May 16, 2026 at 11:16 pm

    You can use VBA to call the built-in Office dictionary using Application.CheckSpelling

    This is the syntax:

    Function CheckSpelling(Word As String, [CustomDictionary], [IgnoreUppercase]) As Boolean

    … and here is an example that meets your requirements:

    Option Explicit
    
    Public Sub Checker()
    
    Dim s           As Variant
    Dim sArray      As Variant
    Dim lCurrRow    As Long
    Dim lStartRow   As Long
    Dim lEndRow     As Long
    
    lStartRow = 1
    lEndRow = 5
    
    Application.ScreenUpdating = False
    
    With ThisWorkbook.Worksheets(1)
        'Clear existing data in Column B
        Call .Columns(2).ClearContents
    
        For lCurrRow = lStartRow To lEndRow
    
            'Populate an Array, splitting the song title at the spaces
            sArray = Split(.Cells(lCurrRow, 1).Text, " ")
    
            'Loop through each word in the Array
            For Each s In sArray
                'Spell Check against the main MS Office dictionary
                If Not Application.CheckSpelling(s) Then
                    'this word is missing, output to Column B:
                    .Cells(lCurrRow, 2).Value = Trim(.Cells(lCurrRow, 2).Value & " " & s)
                End If
            Next s
    
        Next lCurrRow
    End With
    
    Application.ScreenUpdating = True
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a macro that takes a string as a parameter
On other windows operating systems, I could create a Windows Service that listens to
How could i create a trigger that at any insertion on my table [users]
I would like to create a macro as such: <macrodef name=testing> <element name=test implicit=yes/>
I am trying to create a clojure macro that converts an entered symbol to
I would like to create a relative link that switches the current protocol from
I would like a macro or method to find and replace instance of a
Someone on IRC told me I could create objective c objects directly from plist
I am wondering how I could create a custom data type to use within
In Microsoft Visual Studio 6.0, you could create several files at once by spacing

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.