Resetting the search scope:
http://groups.google.com/group/micro...6082458637e4e6
For the formattting options, recording a macro while searching using
formatting will give you a good idea of the syntax.
Eg:
Application.FindFormat.Clear
With Application.FindFormat.Interior
.ColorIndex = 6
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
Tim
"T-Casey" <(E-Mail Removed)> wrote in message
news:C00F610E-806F-4382-86DC-(E-Mail Removed)...
> Thanks in advance,
>
> I have a problem when ttrying to use the range.replace method in excel. If
> I
> have left the find/replace environment in "within" "Workbook" mode and run
> my
> VBA code. The routine will update the entire workbook instead of the
> selected
> range as I would expect.
>
> Is ther a way in VBA to reset the "within" setting to "sheet" prior to
> executing the Replace method?
>
> Also, can anyone give a quick explination to Searchformat & ReplaceFormat
> parameters to this function. I can only find examples where they are set
> to
> false. And the Microsoft documentation is not very helpful.
>
> --
> Tom Casey
> Project Supervisor
> sanofi-aventis