Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Act if spell check box occurs

Problem:
I have a program that checks the spelling of a cell. If the word exists,
nothing happens. Good. If the word doesn't exist, the spelling box occurs.
From there the user can choose to ignore once, ignore all, etc. Bad. I
don't want this box to appear but rather delete the offending word all
together.

One way to possibly solve?...
I am aware of how to toggle the alerts. (application.displayalerts)
I am also aware of "On Error Resume next....code....On Error GoTo 0"
I would like to combine these in a way. Something like, "On
displayalert....." Is anything like this possible?

Another thought...
When the spell check box appears (because the word wasn't in the
dictionary), the default is on the "ignore once" button. Could the macro hit
enter, know it hit enter, then delete the row? I suppose it would still need
to know that the alert appeared...

Thanks for any suggestions or help!
-Cwillis
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Act if spell check box occurs

No code, so I don't know how you are doing it at the moment, but according
to the Help, there are 2 syntax for the CheckSpelling Method.
From what you say, I guess you are using Syntax 1, hence "Microsoft Excel
displays the Spelling dialog box".
Instead, if you used syntax 2 specifying each word you could react to return
value and delete as necessary.

NickHK

"CWillis" wrote in message
...
Problem:
I have a program that checks the spelling of a cell. If the word exists,
nothing happens. Good. If the word doesn't exist, the spelling box

occurs.
From there the user can choose to ignore once, ignore all, etc. Bad. I
don't want this box to appear but rather delete the offending word all
together.

One way to possibly solve?...
I am aware of how to toggle the alerts. (application.displayalerts)
I am also aware of "On Error Resume next....code....On Error GoTo 0"
I would like to combine these in a way. Something like, "On
displayalert....." Is anything like this possible?

Another thought...
When the spell check box appears (because the word wasn't in the
dictionary), the default is on the "ignore once" button. Could the macro

hit
enter, know it hit enter, then delete the row? I suppose it would still

need
to know that the alert appeared...

Thanks for any suggestions or help!
-Cwillis



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spell check Brent Excel Discussion (Misc queries) 1 December 5th 06 10:12 PM
... Can I set Spell Check to automatically check my spelling ... Dr. Darrell Setting up and Configuration of Excel 0 March 21st 06 08:26 PM
check if value occurs within a range peacelittleone Excel Worksheet Functions 4 July 1st 05 09:46 PM
Spell Check Hans Emilio Excel Programming 3 June 12th 05 09:56 PM
How do I have a formula check if a value occurs within a range? afgncaap Excel Worksheet Functions 3 June 1st 05 06:44 PM


All times are GMT +1. The time now is 06:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"