Click activity can not indicate excel file

Hi everyone! :blush:

I’m working on the “Excel Automation with Modern Experience in Studio” course (link).

The exercise has two parts to follow:

  1. In the first part, the tutorial used the same “Reference As” name (MonthReport) for multiple Use Excel File activities. However, in my Studio, I had to give them unique names for it to work.
  2. In the second part, a modern Click activity is used to format the newly created (by automation)MonthReport file. But in my version, it couldn’t identify the file, so I switched to a classic Click activity. Unfortunately, when I run it, I get this error:

Any ideas on how to fix this? Thanks in advance! :blush:

  1. In the first part, the tutorial used the same “Reference As” name (MonthReport) for multiple Use Excel File activities. However, in my Studio, I had to give them unique names for it to work.

If you are referring multiple files in the same project - It is required to use unique values only as these references indictae different files. So, what you have done is correct only

For the second part - May I know why you want to click something in excel as most of the excel operations are supported by background activities and it is not a good practice to do via front end

Specific to your error - it show some selector issue. try recapturing the same. A screenshot of the element would be helpful

1 Like

Thank yo for the reply. :slight_smile:

Click button supposed to open a menu in Excel file. It was done in the academy course, so I needed to follow along.

Hello @Gulshan_Orujova

When using a modern Click activity and trying to capture the element, press F4 to change the UI Framework used for capturing.
This will probably allow you to select the desired button.

Regards
Soren

1 Like

Hi @Gulshan_Orujova

It is not recommended to use UI activities for Excel automation. Instead, use the dedicated Excel activities available in UiPath. If a task cannot be accomplished with Excel activities, consider using VBA macros.

Only use UI activities as a last resort when neither Excel activities nor macros can achieve the desired

Hope it helps!!

1 Like

I am a beginner at automation/UiPath. Therefore, I’m not sure how to do that. However, I wonder why it works in the tutorial. :tired_face:

Thank you! :slight_smile: However that’s not the issue. Modern Click activity does not recognize Excel file at all.
Classic Click activity does, but it also doesn’t allow full project to run successfully, as shared in my screenshots.

Place your Click activity within a Use Application/Browser activity/scope, where you indicate Excel as the active application.

Okay @Gulshan_Orujova

Then follow below steps,
→ Use the excel process scope activity.
→ Inside of it insert the Use excel file activity. Give path of the excel file which you want to automate.
→ Inside of Use excel file activity insert the Click activity and indicate on the element which you want.

Make sure the excel should open in the background then only modern click activity allow you to indicate on excel.

Hope it helps!!

Yes, the Excel process scope was used first, then multiple Use Excel file activities for different purposes. UI activities were also used inside of the Use Excel File activity. I am sharing screenshots of my workflow.

Btw, I get different errors each time I run the file.

Yes you are using it correct, what errors you are facing…?

Could you please disable the protect sheet activities which contains some warnings and try running from the beginning

Hello

I’ve tried that as well. It still doesn’t work



Either of these each time running.