Discussion:
Search and replace
(too old to reply)
Greg Monney
2004-07-28 16:54:13 UTC
Permalink
I have programmed a macro (to strip tabs from a document) in which the Word
search and replace function is called.

However, whether the search is "Up" or "Down" depends on how the function
was last used and I have not been able to find a way to select search DOWN
irrespective of the last search type.

I know I can use SendKey:("Left") - (or Right) - to toggle between search
Up and Down, but whether this is needed depends on the state when called. It
does not seem possible to choose U or D absolutely - or to call the function
in a default predictable mode.

Has anyone come across this problem - or more importantly - found a solution
I could use?

Yours hopefully, TIA
Greg
Graham Holden
2004-08-12 08:58:33 UTC
Permalink
On Wed, 28 Jul 2004 16:54:13 +0000 (UTC), "Greg Monney"
Post by Greg Monney
I have programmed a macro (to strip tabs from a document) in which the Word
search and replace function is called.
However, whether the search is "Up" or "Down" depends on how the function
was last used and I have not been able to find a way to select search DOWN
irrespective of the last search type.
I know I can use SendKey:("Left") - (or Right) - to toggle between search
Up and Down, but whether this is needed depends on the state when called. It
does not seem possible to choose U or D absolutely - or to call the function
in a default predictable mode.
Has anyone come across this problem - or more importantly - found a solution
I could use?
Yours hopefully, TIA
Greg
Manually, "Fn-Left" (i.e. "Home") forces "Up" (the left-hand choice) and
"Fn-Right" (i.e. "End") forces "Down" (the right-hand choice). If you can drop
these in your macro, you should be OK.


Regards,
Graham Holden (g-holden AT dircon DOT co DOT uk)
--
There are 10 types of people in the world;
those that understand binary and those that don't.
Greg Monney
2004-08-13 12:28:53 UTC
Permalink
Thanks Graham - exactly what I needed.
Greg

Loading...