Capture Find Settings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Range.Find takes a number of argument. What, LookIn, LookAt, SearchDirection,
.... These settings are saved each time you run a find meaning that in order
to be safe you are best off to supply values for each of the arguments.
However when you do this the values are saved and when the end user brings up
their Find or Find and Replace dialogue they are presented with whetever
settings that the code left them at. My question... Is there a way to capture
these settings prior to running the Find code so that you can restore them to
their original state when the find code is complete.
 
I don't think you can capture them.

But you could do a dummy .find (or .replace) and set them back to what you think
should be close to the defaults.
 
I've never found a way to capture them either. As well as restoring assumed
default settings I clear the search string, which is otherwise retained

x = ActiveSheet.Cells.Find("") ' plus other "unchecked" arg's

Regards,
Peter T
 
Thanks Dave and Peter. I was starting to get the impression that I could not
capture that info but I thought I would ask.
 

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

Back
Top