How to find Rectangle in Excel file and click as per Name


I have Excel Macro where I need to perform different tasks by clicking on buttons (Rectangle) added. Is there any solution to find the rectangle as per name and then click on that.

Below are the highlighted Buttons(Rectangle) there I need to click.

If I used normal selectors like below it is not working. (Some time it works some time not)

I have tried with Button name to be used here instead of name=Rectangle but it is not working.

I tried Get Attribute activity to find buttons but it is also not working.

Try to use UiExplorer and have a look if there are other selectors can be used which specifically identifies the particular button you wanted to click.

1 Like