Question

I have created a bot where it opens a word file and by using Simulate keystrokes it opens the find and replace search bar, now my query is how do I set text in the find textbox and replace it with something else. I Tried Universal rec but it throws i

  • 3 March 2022
  • 1 reply
  • 13 views

I have created a bot where it opens a word file and by using Simulate keystrokes it opens the find and replace search bar, now my query is how do I set text in the find textbox and replace it with something else. I Tried Universal rec but it throws issue.

1 reply

Userlevel 3
Badge +7

Hi @Pratiksha Bari​ ,

 

The Word Action Package has a Replace Action that you can take advantage of, which works in background.

 

Imagine the Text you wanted to replace was '$TextToBeReplace$'

 

imageI've added two Dollar Signs to each end in order to Escape it.

Automation Anywhere interprets dollar signs as variable initializations, which is why it is necessary to escape them if you want it to be considered as a part of the actual text.

 

Could you try that and let us know if it works out for you?

 

Kind Regards,

Ashwin A.K

Reply