Ask Your Question
0

Access the writer search string in the search box from macro?

asked 2020-05-15 16:48:54 +0100

Pansmanser gravatar image

updated 2020-07-22 09:01:55 +0100

Alex Kemp gravatar image

In writer (& other modules) one can set up a search string by Ctrl-F (or, of course, Edit-Find) and repeat the search using Shift-Ctrl-F. one can also repeat the search forwards and backwards by using the arrows next to the search box. It would be useful to search backwards with a keystroke as well, but there does not appear to be a 'Repeat Search Backwards' command available. I therefore intended to write a macro to do so, but fell at the first hurdle - how does one access the search string which is entered in the search box?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-05-15 17:43:35 +0100

JohnSUN gravatar image

In fact, for the reverse search (to search for the previous one) you can use the same key combination Shift+Ctrl+F. The search will be carried out in the same direction as you indicated by pressing the arrow on the search toolbar - up or down.

If you still want to use the macro, then I don't recommend reaching out to the search engines that the application uses, this is fraught with errors in the work of the office suite. Better create your own search descriptor and use it.

edit flag offensive delete link more

Comments

Thanks, JohnSun. Fair comment. I know that repeat search keeps going in the same direction, but I don't like switching between keystrokes and clicking those little arrows by the search box. I suppose an alternative would be a macro to change the direction prior to Shift-Ctrl-F, but as you point out tampering with writer's search engines is probably a worthless task.

Pansmanser gravatar imagePansmanser ( 2020-05-16 12:25:51 +0100 )edit

I didn't say "worthless", I said "dangerous" :-)

If you do everything carefully, you can avoid mistakes. But for this you need to know all the mechanisms associated with the search and take into account the impact of your intervention in each of them. Not so complicated, but very painstakingly (honestly, it’s much easier to accustom yourself to little arrows)

JohnSUN gravatar imageJohnSUN ( 2020-05-16 12:48:58 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-05-15 16:48:54 +0100

Seen: 39 times

Last updated: May 15 '20