Re: Find method rebound sometimes

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



Here you are :

'-----------------------------------------------------------------------------------------------------

Selection.HomeKey wdStory ' go to top
Selection.Find.ClearFormatting

With Selection.Find
.Style = 'somestyle'
.Text = " "
Do
ok = .Execute(, , , , , , True, wdFindStop)
Loop While ok = True

End With
'---------------------------------------------------------------------------------------------------------
I'm going to explain it again :
In certain situations my code work fine, however inside tables or when I
have only a 'enter' or carriage return this macro find allways the same
solution.

thanks



"Helmut Weber" <HelmutWeber@xxxxxxxxxxxxxxxxxxxxxxxxx> escribió en el
mensaje news:BC404675-D322-4F31-8464-5397F6D3FEDF@xxxxxxxxxxxxxxxx
> Hi Antonio,
>
> hm...
>
> I think you should rather post the code that causes the problem
> than your attempts at solving them. ;-)
>
> Greetings from Bavaria, Germany
> Helmut Weber, MVP WordVBA
> "red.sys" & chr(64) & "t-online.de"
> Word 2002, Windows 2000
>
>
>
>


.



Relevant Pages

  • Re: replacing thru macro a particular word with particular font
    ... Dim i As Long, myrange as range ... Selection.HomeKey wdStory ... Loop ... > and i thought i could have seen the code generated by ms word 2000> while recording a macro and Formatting the replace field by my font.. ...
    (microsoft.public.word.vba.general)
  • Re: Add [] around numbers
    ... non-decimal numbers are in a paragraph by themselves or have a space before ... Selection.HomeKey wdStory ... Loop ... Doug Robbins - Word MVP ...
    (microsoft.public.word.newusers)
  • Re: [vba] search and format finds
    ... Selection.HomeKey wdStory ... Loop ... > .FormattedText.Case = wdTitleWord ... > .Font.Underline = wdUnderlineSingle ...
    (microsoft.public.word.formatting.longdocs)
  • Re: Searching for formats
    ... Dim myrange As Range, Flag As Boolean ... Selection.HomeKey wdStory ... Loop ...
    (microsoft.public.word.pagelayout)
  • Re: macro for entering a symbol or text
    ... the word "balance": ... Selection.HomeKey wdStory ... Loop ... Doug Robbins - Word MVP ...
    (microsoft.public.word.vba.beginners)