Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Ignore Case Sensitive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sydney - 20 Mar 2006 01:31 GMT
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
Jay Freedman - 20 Mar 2006 04:12 GMT
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        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

>Hi All
>
[quoted text clipped - 4 lines]
>
>Thanks in advance
Sydney - 20 Mar 2006 06:30 GMT
Thanks

> Set the .Find.MatchCase property to False. For an example, look in the
> VBA help topic on the MatchCase property.
[quoted text clipped - 14 lines]
> >
> >Thanks in advance
Sydney - 20 Mar 2006 23:39 GMT
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
> Microsoft Word MVP        FAQ: http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the newsgroup
so all may benefit.

> >Hi All
> >
[quoted text clipped - 4 lines]
> >
> >Thanks in advance
Robert Paulsen - 21 Mar 2006 02:38 GMT
You can use the LCase or UCase method to change the name to lower or upper
case:

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

> Hi
>
[quoted text clipped - 28 lines]
> > >
> > >Thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.