Ignore Case Sensitive

S

Sydney

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
 
J

Jay Freedman

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

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
S

Sydney

Thanks


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

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
S

Sydney

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.


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


Regards,
Jay Freedman
 
R

Robert Paulsen

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top