A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

how to disable spell checker



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 7th 09, 12:23 PM posted to microsoft.public.outlook.program_vba
Allen_N
external usenet poster
 
Posts: 6
Default how to disable spell checker

I have built an Excel utility that fetches e-mail addresses from a database
of users and e-mails a prepared message (from a text box in a worksheet) to
some or all of the addresses. The e-mail addresses are fetched by a query and
populate a column in a worksheet. When all are to be e-mailed, I build the
recipient list from the column cells and call ShellExecute/mailto once. When
only selected addresses are to be e-mailed, I call ShellExecute/mailto in a
loop, so that the messages can be individually customised in the Outlook
composer window.

My only problem is that, in the latter mode, the Outlook spell checker is
invoked each time a new message/recipient is created.

Is it possible to programmatically disable Outlook's spell checker (from
Excel VBA), then re-enable it when done?

Thanks!

Al



Ads
  #2  
Old July 7th 09, 03:19 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default how to disable spell checker

The setting for spell checking is in the registry. Outlook reads the setting
on startup, then caches the setting and any changes in memory while Outlook
is running. If you change the Options dialog to disable spell check on send
Outlook writes the change to the registry but still relies on the in-memory
cached setting for its operations. So any change you make needs to be when
Outlook is not running.

The registry location is at
HKCU\Software\Microsoft\Office\11.0\Outlook\Option s\Spelling, in the
registry value Check (a REG_DWORD value). 1 means spell check is enabled, 0
means it's disabled.

That registry path is specific to Outlook 2003, for 2007 it would be "12.0"
instead of "11.0", etc.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Allen_N" wrote in message
...
I have built an Excel utility that fetches e-mail addresses from a database
of users and e-mails a prepared message (from a text box in a worksheet)
to
some or all of the addresses. The e-mail addresses are fetched by a query
and
populate a column in a worksheet. When all are to be e-mailed, I build the
recipient list from the column cells and call ShellExecute/mailto once.
When
only selected addresses are to be e-mailed, I call ShellExecute/mailto in
a
loop, so that the messages can be individually customised in the Outlook
composer window.

My only problem is that, in the latter mode, the Outlook spell checker is
invoked each time a new message/recipient is created.

Is it possible to programmatically disable Outlook's spell checker (from
Excel VBA), then re-enable it when done?

Thanks!

Al




  #3  
Old July 8th 09, 03:16 AM posted to microsoft.public.outlook.program_vba
Allen_N
external usenet poster
 
Posts: 6
Default how to disable spell checker

Thanks, Ken.

I don't think I want to start programmatically altering Registry keys --
especially if I'm going to share the app with other people in the company.

Is there a way to detect whether or not the spell checker process runs after
invoking Outlook from ShellExecute? If I could do that, I could use SendKeys
to dismiss the spell checker pop-up and carry on with the mailing loop.

Regards,
Al


"Ken Slovak - [MVP - Outlook]" wrote:

The setting for spell checking is in the registry. Outlook reads the setting
on startup, then caches the setting and any changes in memory while Outlook
is running. If you change the Options dialog to disable spell check on send
Outlook writes the change to the registry but still relies on the in-memory
cached setting for its operations. So any change you make needs to be when
Outlook is not running.

The registry location is at
HKCU\Software\Microsoft\Office\11.0\Outlook\Option s\Spelling, in the
registry value Check (a REG_DWORD value). 1 means spell check is enabled, 0
means it's disabled.

That registry path is specific to Outlook 2003, for 2007 it would be "12.0"
instead of "11.0", etc.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Allen_N" wrote in message
...
I have built an Excel utility that fetches e-mail addresses from a database
of users and e-mails a prepared message (from a text box in a worksheet)
to
some or all of the addresses. The e-mail addresses are fetched by a query
and
populate a column in a worksheet. When all are to be e-mailed, I build the
recipient list from the column cells and call ShellExecute/mailto once.
When
only selected addresses are to be e-mailed, I call ShellExecute/mailto in
a
loop, so that the messages can be individually customised in the Outlook
composer window.

My only problem is that, in the latter mode, the Outlook spell checker is
invoked each time a new message/recipient is created.

Is it possible to programmatically disable Outlook's spell checker (from
Excel VBA), then re-enable it when done?

Thanks!

Al





  #4  
Old July 8th 09, 03:06 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default how to disable spell checker

The only way I know of to do that is to use Win32 API calls to find the
spelling window class and then send a Windows Message to that window to
close down. You'd have to use Spy++ or a similar utility to find the
spelling window class name and use that in calls to something like
FindWindow() or FindWindowEx(). Then a SendOrPost to that window with
WM_CLOSE as the message should do it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Allen_N" wrote in message
...
Thanks, Ken.

I don't think I want to start programmatically altering Registry keys --
especially if I'm going to share the app with other people in the company.

Is there a way to detect whether or not the spell checker process runs
after
invoking Outlook from ShellExecute? If I could do that, I could use
SendKeys
to dismiss the spell checker pop-up and carry on with the mailing loop.

Regards,
Al


  #5  
Old July 13th 09, 02:51 AM posted to microsoft.public.outlook.program_vba
Allen_N
external usenet poster
 
Posts: 6
Default how to disable spell checker

Thanks again, Ken !



"Ken Slovak - [MVP - Outlook]" wrote:

The only way I know of to do that is to use Win32 API calls to find the
spelling window class and then send a Windows Message to that window to
close down. You'd have to use Spy++ or a similar utility to find the
spelling window class name and use that in calls to something like
FindWindow() or FindWindowEx(). Then a SendOrPost to that window with
WM_CLOSE as the message should do it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Allen_N" wrote in message
...
Thanks, Ken.

I don't think I want to start programmatically altering Registry keys --
especially if I'm going to share the app with other people in the company.

Is there a way to detect whether or not the spell checker process runs
after
invoking Outlook from ShellExecute? If I could do that, I could use
SendKeys
to dismiss the spell checker pop-up and carry on with the mailing loop.

Regards,
Al



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
spell checker in OE6 Laura Outlook Express 3 August 29th 08 03:58 AM
spell checker bigwhistle Outlook - Installation 4 March 19th 08 04:02 AM
Spell Checker gone Ray Outlook Express 6 February 15th 07 04:10 AM
No spell checker bajabum Outlook Express 8 November 28th 06 03:02 AM
Spell checker for OE 6 Ron Hirsch Outlook Express 1 March 17th 06 04:08 PM


All times are GMT +1. The time now is 02:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.