Spell Checking Nonsense Words and deleting.

jackiegreen

New Member
Joined
Jan 17, 2006
Messages
10
I am making a very neat learning program for my beginning reading students. In order to make it, I have created a list of "start" sounds in column a, and a list of "ending" sounds in row 1. So for example, column a has the whole alphabet plus digraphs (sounds like "wh" and "th") etc. Column b has sounds like "at" or "ack" or "ox". Then I used this row and column to create a table with 5000+ "words" (or really sound combos, only a fraction are words! 46x117 possibilities) combining every "start" with every "ending" (So "at" will have "aat" and "bat" and "cat" and "dat" etc. but of those only "bat" and "cat" etc are real words.)

Now that I have this massive table of both nonsense and real words, I need to delete the nonsense or non-words from the 5000. I have been doing it manually for hours. Ugggg. Then I tried using the spell checker. The spell checker works, but it will also take me forever because for every nonsense word I have to (1) delete the text in the spelling window, (2) click "delete" on the spell check box (the delete appears after I have deleted the text in the spelling box.) So, it is two mouse clicks for every nonsense word (I think my wrist will explode after 9500 mouse clicks to get this done.) I know that if the spell check rejects the word, I just want to delete it automatically. So, is there a way to just have the spell checker not stop and ask my opinion every time and just delete everything that it can't find in the dictionary in one fell swoop?

Thanks, and I am really a novice on excel, so if the answer is really complicated I'll be stuck weeding out these nonsense words by hand (for weeks? for months? ugg!)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
This will delete the non-words from column C starting in row 1:

Code:
Sub Test()
    Dim Rng As Range
    Dim x As Long
    Set Rng = Range("C1:C" & Range("C65536").End(xlUp).Row)
    For x = Rng.Rows.Count To 1 Step -1
        If Application.CheckSpelling(Rng.Cells(x, 1).Value) = False Then
            Rng.Cells(x, 1).Delete Shift:=xlUp
        End If
    Next x
End Sub

Adapt the range to suit.
 
Upvote 0

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top