Ignore Case Sensitive

Ignore Case Sensitive

Post by Sydne » Tue, 21 Mar 2006 09:31:30


Hi All

Is it possible to ignore case senstive in Word VBA?

Im searching for bookmarks but would like to set it to ignore case senstive.
I cant seem to find a way to do this.

Thanks in advance
 
 
 

Ignore Case Sensitive

Post by Jay Freedm » Tue, 21 Mar 2006 12:12:06

Set the .Find.MatchCase property to False. For an example, look in the
VBA help topic on the MatchCase property.

On Mon, 20 Mar 2006 11:31:30 +1100, "Sydney" < XXXX@XXXXX.COM >

 
 
 

Ignore Case Sensitive

Post by Sydne » Tue, 21 Mar 2006 14:30:32

Thanks





senstive.
 
 
 

Ignore Case Sensitive

Post by Sydne » Wed, 22 Mar 2006 07:39:58

Hi

This only seems to applicable to the Find property is this right? I cant
use it when searching for bookmarks, eg

For Each myBookmark In ActiveDocument.Bookmarks

MatchCase = False
If myBookmark.Name = "test1" Then
do this
end if

Any ideas would be greatly appreciated.







Regards,
Jay Freedman
so all may benefit.

senstive.
 
 
 

Ignore Case Sensitive

Post by Um9iZXJ0IF » Wed, 22 Mar 2006 10:38:53

You can use the LCase or UCase method to change the name to lower or upper
case:

If LCase$(myBookmark.Name) = "test1" Then