View Single Post
  #31   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP
 
Posts: n/a
Default Random letter colors?

It turns out that you are doing nothing wrong (apart from not making use of
the Help file g). It is a difference between the use of a Wildcard Find
and the use of the Like function.

The following is from the Visual Basic Help file:

Quote
Note To match the special characters left bracket ([), question mark (?),
number sign (#), and asterisk (*), enclose them in brackets. The right
bracket (]) can't be used within a group to match itself, but it can be used
outside a group as an individual character.

Unquote

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"LurfysMa" wrote in message
...
On Tue, 3 Jan 2006 08:47:47 +0200, "Graham Mayor"
wrote:

Or the revised version of it at
http://www.gmayor.com/replace_using_wildcards.htm

--

Graham Mayor - Word MVP


OK. I have read both articles. Based on that, it seems to me that the
expression "[A-Za-z0-9[\]]" ought to find all of the letters and
numbers plus the square brackets ([]) in a Like comparison.

But it doesn't match any characters at all.

However, if I delete the "\]", leaving "[A-Za-z0-9[]", then it will
match all of the letters and numbers plus "[".

What am I doing wrong?

--
Running Word 2000 SP-3 on Windows 2000