Re: How to build the search string to find numbers from 75 to 99?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Sure. In theory, the more people request a feature, the more likely the dev team is to pick that up...

Regards,
Klaus


"Robix" <address923@xxxxxxxxxxx> schrieb im Newsbeitrag news:#87wwkbQFHA.3156@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Klaus,
>
> Thank you for the confirmation on vertical bar.
> As for the posting it to MS, I will think about :) I'm sure I not the first
> man who misses it.
>
> Regards,
> Robert
>
> "Klaus Linke" <info@xxxxxxxxxxxxxxxxxxxx> wrote in message
> news:%23jugbNRQFHA.2680@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Robin,
>
> You're right: "or" (|) is missing from Word's wildcard repertoire.
>
> You can tell Microsoft that you'd like this feature with a mail/post to
> MSWish:
> http://register.microsoft.com/mswish/suggestion.asp
> or post it as a "suggestion" on the web interface to these newsgroups:
> http://www.microsoft.com/office/community/en-us/FlyoutOverview.mspx#13
> (Passport needed; MS empoyees look at suggestions and reply to a [very]
> few).
>
> Greetings,
> Klaus
>
>
>
>
> "Robix" <address923@xxxxxxxxxxx> wrote:
> > Hi Dave,
> >
> > Thank you for your code.
> > I created exactly the same search strings using wildcards (one for 75 to
> > 79,
> > another one for 80 to 99). But I wonder if those two search strings can be
> > put together in just one search string covering numbers between 75 and 99.
> > I
> > tried to use vertical bar | to create a condition, but it does not seem to
> > work with wildcards. Vertical bar seems to have no special meaning in
> > wildcards.
> >
> > Can you advise on this?
> > Regards,
> > Robert
> >
> > "Dave Lett" <dlett@xxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:uHZssqPQFHA.3416@xxxxxxxxxxxxxxxxxxxxxxx
> > > Hi Robert,
> > >
> > > You can iterate through the numbers and do it with the following:
> > >
> > > Dim iNum As Integer
> > > Dim iLoop As Integer
> > >
> > > iNum = 75
> > >
> > > With Selection
> > > .HomeKey Unit:=wdStory
> > > For iLoop = 1 To 100 - 75
> > > With .Find
> > > .Text = CStr(iNum)
> > > .MatchWholeWord = True
> > > With .Replacement
> > > .ClearFormatting
> > > .Font.Bold = True
> > > End With
> > > .Execute Replace:=wdReplaceAll
> > > End With
> > > iNum = iNum + 1
> > > Next iLoop
> > > End With
> > >
> > > If you have your heart set on wildcards, then you can use something like
> > > the
> > > following:
> > >
> > > With Selection
> > > .HomeKey Unit:=wdStory
> > > With .Find
> > > .ClearFormatting
> > > .Text = "<[7][5-9]>"
> > > .MatchWildcards = True
> > > With .Replacement
> > > .ClearFormatting
> > > .Font.Bold = True
> > > End With
> > > .Execute Replace:=wdReplaceAll
> > >
> > > .Text = "<[8-9][0-9]>"
> > > .Execute Replace:=wdReplaceAll
> > > End With
> > > End With
> > >
> > > HTH,
> > > Dave
> > >
> > >
> > > "Robix" <address923@xxxxxxxxxxx> wrote in message
> > > news:%238o3dJPQFHA.1172@xxxxxxxxxxxxxxxxxxxxxxx
> > >> Hi,
> > >>
> > >> I do not know if this is the right group to post this message.
> > >> I needed to search for the numbers between 75 and 99. I built 2 search
> > >> strings using wildcards (I am not using VBScript regular expressions).
> > >> One
> > >> for numbers from 75 to 79, and the second for the numbers from 80 to
> > >> 99.
> > > It
> > >> works fine. Anyway, I wonder if it is possible to build one search
> > >> string
> > >> that would find numbers between 75 and 99 using wildcards.
> > >>
> > >>
> > >> Thank you very much.
> > >> Regards,
> > >> Robert
> > >>
> > >>
> > >
> > >
> >
> >
>
>
.



Relevant Pages

  • Re: username:password @domain.com
    ... May I ask why you need this particular feature - is it ... Altrus ... entries on a win98 machine worked fine. ... :> Best regards, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Problem with encoding (at least I think)
    ... ~$ZWDAddin is a temporary file, and the problem should solve itself if you close down Word, delete that temp file, and restart Word. ... Regards, ... Klaus ...
    (microsoft.public.word.newusers)
  • Re: Mac Soup Feature request
    ... Klaus Behrendt wrote: ... Alfabetisches Sortieren hat Vorteile. ... dass Newsgruppen doppelt aboniert werden können? ... Oder könnte ich so ein Feature mit 50 EUR unterstützen? ...
    (de.comp.sys.mac.misc)
  • Re: ata and netdev (was Re: -mm merge plans for 2.6.23)
    ... In regards to the ethtool stuff i coded: ... It should be defaulting to 1Gbit/full duplex if no autonegotiation is happening, and if it isn't then that should be fixed instead of papering over things with a config option. ... The "disable_autoneg" is a convenient feature (for me and the other guy who made the same patch last year) and i consider it a harmless feature in every way. ...
    (Linux-Kernel)
  • Re: Control Words - Thank you
    ... I'll try Klaus' tip first. ... Regards, ... Or, if you don't want to loose all formatting, open the RTF file in WordPad ...
    (microsoft.public.word.newusers)