Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default disable spell check pop-up message

I created a macro that sets a range within my worksheet. After the proper
range has been set, I run ActiveCell.CheckSpelling. This works fine. Since
I am not checking the spelling of the entire worksheet, the user is prompted
with a message to see if they would like to check the spelling from the
beginning. Is there anyway to turn this off (other than spell check of the
entire worksheet)?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default disable spell check pop-up message

"Greg" wrote in message
...
I created a macro that sets a range within my worksheet. After the proper
range has been set, I run ActiveCell.CheckSpelling. This works fine.
Since
I am not checking the spelling of the entire worksheet, the user is
prompted
with a message to see if they would like to check the spelling from the
beginning. Is there anyway to turn this off (other than spell check of
the
entire worksheet)?


Hi Greg,

When you run the CheckSpelling method from a single cell, VBA
automatically assumes you want to spell-check the whole worksheet
(consistent with the way spell checking works in the UI).

The way I get around this is to select an empty cell in addition to the
cell I'm trying to spell-check and then run the CheckSpelling method on
these two cells. Since the empty cell is empty it has no effect, and since
the CheckSpelling method is being run on multiple cells it stops when it has
finished those cells.

The additional empty cell doesn't have to be near the one you're trying
to spell-check. For example, cell A1 is empty in almost all of my
worksheets, so I always use it. So if you wanted to spell-check cell D5 on
the active worksheet and you know cell A1 is empty you could do this:

Application.Union(ActiveSheet.Range("A1"), _
ActiveSheet.Range("D5")).CheckSpelling

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default disable spell check pop-up message

Rob,
Worked perfectly !!

Thank you,
Greg

"Rob Bovey" wrote:

"Greg" wrote in message
...
I created a macro that sets a range within my worksheet. After the proper
range has been set, I run ActiveCell.CheckSpelling. This works fine.
Since
I am not checking the spelling of the entire worksheet, the user is
prompted
with a message to see if they would like to check the spelling from the
beginning. Is there anyway to turn this off (other than spell check of
the
entire worksheet)?


Hi Greg,

When you run the CheckSpelling method from a single cell, VBA
automatically assumes you want to spell-check the whole worksheet
(consistent with the way spell checking works in the UI).

The way I get around this is to select an empty cell in addition to the
cell I'm trying to spell-check and then run the CheckSpelling method on
these two cells. Since the empty cell is empty it has no effect, and since
the CheckSpelling method is being run on multiple cells it stops when it has
finished those cells.

The additional empty cell doesn't have to be near the one you're trying
to spell-check. For example, cell A1 is empty in almost all of my
worksheets, so I always use it. So if you wanted to spell-check cell D5 on
the active worksheet and you know cell A1 is empty you could do this:

Application.Union(ActiveSheet.Range("A1"), _
ActiveSheet.Range("D5")).CheckSpelling

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm



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 Warm Excel Worksheet Functions 3 June 16th 09 03:30 PM
No Spell Check Patrick[_2_] New Users to Excel 1 May 4th 08 02:09 PM
disable spell check whilst automatically sending email from Excel RocketRod Excel Worksheet Functions 0 February 10th 08 11:02 PM
Spell Check Sarapu New Users to Excel 1 October 16th 07 07:39 AM
... 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


All times are GMT +1. The time now is 05:56 PM.

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

About Us

"It's about Microsoft Excel"