LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Application.CheckSpelling Error in Macro

Here is an extremely odd problem I am having...I am writing a macro and I need to write a function that will count the number of words not found in the dictionary for the text passed to the function. So, Application.CheckSpelling seems to be the way to go, but here is the problem - it doesn't work!

If I go to the immediate window and type ?Application.CheckSpelling("test", , False), it returns the correct result (True). Now, if I write this functio

Function Crazy(Text as String
Crazy = Application.CheckSpelling("test", , False
End Functio

and call it from a worksheet, it always returns False. It returns False for any word that you try to spell check. It is totally crazy that Application.CheckSpelling works in the immediate window in the VBA editor, but it doesn't work when you put it in a function in a macro and call that function from a cell. What am I doing wrong? Does anybody know how to correct this problem?
 
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
application error hahn Excel Discussion (Misc queries) 0 October 15th 07 09:29 PM
Macro error : Application-defined or object-defined error Joe Excel Discussion (Misc queries) 3 January 27th 06 02:32 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
Application Error when running Macro on Workbook open TM[_2_] Excel Programming 1 October 2nd 03 10:53 AM
Application Error when running Macro on Workbook open TM[_2_] Excel Programming 0 September 15th 03 12:33 PM


All times are GMT +1. The time now is 07:01 AM.

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"