I am currently using Excel Application Scope (EAS) to make some format changes in excel. The bot is using the “Find and Replace” function in excel.
Normally if you use the same function in excel manually, and after completing the find and replace function it would give you this message.
However, when I run the bot, the Excel Application Scope opens the excel file. After it finds and replaces, the message box does not appear anymore. I have also tried finding something that does not exist in the excel file and replacing it. Excel does not show the message box that the item searched does not exist and the bot continues with its tasks.
Does this happen because Excel Application Scope has a special way of opening the excel file which ignores showing message boxes? If it does is there any way where I can get the message box to show?
Thanks very much.
The replace is working fine. However, when I tested with a phase that cannot be found in the excel sheet, the replace function continues without sending an error like this.
Yah that’s correct
And to get that message pop up to come in foreground
then
We need to elope the excel file with START PROCESS activity by passing the file path of the excel as input to FileName property
Once after opening use Send hot key activity with key as ctrl+f
Then use Type into activity and search for the term we want
And use Click activity to click on search button
If any pop up message of error message came to handle that either click activity to click on OK button or use Send hot key activity with key as enter to click on that button
It will come when there is nothing to replace
so u can handle this by Element Exist
If above element exist then click on Ok
else leave
Similarly u will get for replace