Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Capture Find Settings

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.
--
HTH...

Jim Thomlinson
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Capture Find Settings

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.



Jim Thomlinson wrote:

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.
--
HTH...

Jim Thomlinson


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Capture Find Settings

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

"Dave Peterson" wrote in message
...
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.



Jim Thomlinson wrote:

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.
--
HTH...

Jim Thomlinson


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Capture Find Settings

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

Jim Thomlinson


"Dave Peterson" wrote:

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.



Jim Thomlinson wrote:

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.
--
HTH...

Jim Thomlinson


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel screen capture to capture cells and row and column headings jayray Excel Discussion (Misc queries) 5 November 2nd 07 11:01 PM
Determine Find/Replace settings and then restore them? Dan Williams Excel Programming 1 December 23rd 05 05:06 PM
cannot find c:\documents and settings Old Bob Excel Discussion (Misc queries) 6 October 31st 05 06:45 PM
Use VBA to capture IP address KR Excel Programming 2 January 11th 05 04:15 PM
Up Capture Alex Excel Programming 0 July 26th 04 08:09 PM


All times are GMT +1. The time now is 03:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"