Find style not working
Posted: 2015-06-27 17:00:56
Hi --
I duplicated the macro "Find all and show context" (after I updated it so it worked) and edited it so the Find expression is a style. The dialog box pops up and shows that I want to find
Character Style "xref"
which is correct. There are 3 chunks of text in my document with this style. But it is saying there are no matches.
The statement where I set the Find expression is:
$findExp = $doc.styleWithName 'xref'
I've tried with both paragraph and character styles and still no results. Am I doing something wrong, or does this feature not really exist as documented?
"As of v2.0.5 the findText argument can also be a Style object instead of some text. If a style is given, then will match any text with that style applied."
I'm using 2.1.1.
Thanks -- Barbara
I duplicated the macro "Find all and show context" (after I updated it so it worked) and edited it so the Find expression is a style. The dialog box pops up and shows that I want to find
Character Style "xref"
which is correct. There are 3 chunks of text in my document with this style. But it is saying there are no matches.
The statement where I set the Find expression is:
$findExp = $doc.styleWithName 'xref'
I've tried with both paragraph and character styles and still no results. Am I doing something wrong, or does this feature not really exist as documented?
"As of v2.0.5 the findText argument can also be a Style object instead of some text. If a style is given, then will match any text with that style applied."
I'm using 2.1.1.
Thanks -- Barbara