Share via

Find & replace with applescript

Anonymous
2015-10-19T09:52:04+00:00

Hello

I have the following working script:

set findRange to find object of selection

tell findRange

clear formatting

clear formatting its replacement

execute find find text "searchString" replace with "replaceString" replace replace all

end tell

The problem is that it does not replace the Text in the header, the footer, or in a tablecell of the Word-Document. Is there a Way to replace all – not only the Text in the body?

Many thanks in advance for your efforts!

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2015-10-19T21:51:48+00:00

This is solved. I've found the following article, where the solution could be found if someone is interessted in:

Applescript Article

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2015-10-20T20:37:02+00:00

    Glad to know that the issue has been resolved

    Was this answer helpful?

    0 comments No comments