Skip to main content
Participant
February 2, 2024
Question

Reverse "find and replace" replacement order

  • February 2, 2024
  • 2 replies
  • 556 views

When I 'find and replace' an item in a document, the automation goes from the last item to the first. Is ther a way to reverse this from top to bottom? Using the "Direction" option within the dialog box doesn't help with replacement order, only finding.

 

It would help while developing a survey. Currently I have a list of check boxes with the 'name' for the first check box set (ex. 'A1-'). Then I 'find and replace' check boxes in my list of answers with the first instance by using Change to > Other > Clipboard contents, formatted. This will update my check boxes and add an incramental number to the name (which is a huge help), but it starts at the bottom of the list, so that the first check box name is 'A1-10' and 'A1-1' the last. 

This topic has been closed for replies.

2 replies

m1b
Community Expert
Community Expert
February 2, 2024

Hi @Kristine Jones, I'm trying to set up a test case to match the problem you describe but I'm stuck—how do you do the "add an incremental number to the name" part? I might be able to help with scripting this, but you are more advanced than I am at find/change!

- Mark

Participant
February 2, 2024

Hi Mark. The number is automatically added by InDesign during the 'Change All' process. 

A script would be great.

m1b
Community Expert
Community Expert
February 2, 2024

Yes that's what I want to know how to do! 🙂

 

Is it a special symbol put in the Change To field?

James Gifford—NitroPress
Legend
February 2, 2024

Seems like the search direction should do this —

 

 

And it seems to, for me. Keep in mind that you need to start at the end of the doc, or past any text you want found.

 

Are you perhaps confusing the search with specified styles, etc.?

Participant
February 2, 2024

Thanks, James. 

I did experiment with those buttons. It works when you are finding one instance at a time. But if you 'Change All' it starts replacing instances from the bottom.

James Gifford—NitroPress
Legend
February 2, 2024

Urgh. Sorry, should have assumed you knew what you were talking about here.

 

Someone else might have a solution or workaround, but on thinking (more) about it, I think this oddity has bothered more than one prior user and that no good solution was ever found.