Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default CheckSpelling function

I want to try and write a wordsearch program to find all valid words in
a grid. The theory is I could pull out every possible word, land that
in a particular cell, then do a range.CheckSpelling on that range. If
it's good, then I add it to a list, if not I don't.

Also how easy is it to distinguish between UK & US spellings - e.g.
honour not honor for example?
--
Mike News
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default CheckSpelling function

Mike,

Are you thinking of a grid game like Boggle?

If so, I wrote one that I will send to you privately....

Bernie
MS Excel MVP

"Mike" S wrote in message
...
I want to try and write a wordsearch program to find all valid words in a
grid. The theory is I could pull out every possible word, land that in a
particular cell, then do a range.CheckSpelling on that range. If it's
good, then I add it to a list, if not I don't.

Also how easy is it to distinguish between UK & US spellings - e.g. honour
not honor for example?
--
Mike News


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default CheckSpelling function

In message
at 19:46:02 on Sun, 13 Sep 2009, Bernie Deitrick
wrote
Mike,

Are you thinking of a grid game like Boggle?

If so, I wrote one that I will send to you privately....

Similar, but instead of jumping all over the place, just looking for
words like in a traditional wordsearch, e.g. horizontally, vertically,
or diagonally.

I should be able to adapt Boggle - it's just the code of how to check
individual words that I need to do. Oh and I'm on Excel 2003 :)

Cheers
--
Mike News
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default CheckSpelling function

Mike,

Application.CheckSpelling(String) will return TRUE when the spelling is OK.
Alternatively, you could check the strings against your word list for a
match. You should probably start with the longest strings and work to
shorter strings, since, for example, "short" is correctly spelled but the
word to be found may actually be "shorter" .....

HTH,
Bernie
MS Excel MVP


"Mike" S wrote in message
...
In message
at 19:46:02 on Sun, 13 Sep 2009, Bernie Deitrick
wrote
Mike,

Are you thinking of a grid game like Boggle?

If so, I wrote one that I will send to you privately....

Similar, but instead of jumping all over the place, just looking for words
like in a traditional wordsearch, e.g. horizontally, vertically, or
diagonally.

I should be able to adapt Boggle - it's just the code of how to check
individual words that I need to do. Oh and I'm on Excel 2003 :)

Cheers
--
Mike News


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default CheckSpelling function

In message
at 21:01:40 on Mon, 14 Sep 2009, Bernie Deitrick
wrote
Application.CheckSpelling(String) will return TRUE when the spelling is
OK. Alternatively, you could check the strings against your word list
for a match. You should probably start with the longest strings and
work to shorter strings, since, for example, "short" is correctly
spelled but the word to be found may actually be "shorter" .....

Thank you - that works a treat
--
Mike News


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
Checkspelling with Autofilter Bert Excel Programming 0 December 19th 08 09:33 PM
CheckSpelling Jim McC Excel Programming 3 September 25th 06 04:14 PM
CheckSpelling a Textbox Stuart[_21_] Excel Programming 5 March 19th 05 06:40 AM
CheckSpelling + TextBox Stuart[_5_] Excel Programming 0 July 27th 04 06:59 AM
TextBox - CheckSpelling question Stuart[_5_] Excel Programming 2 July 24th 04 08:41 PM


All times are GMT +1. The time now is 01:24 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"