Request for Help: Dynamic Click to Update Embedded Excel Textboxes Fails to Iterate in Loop (UiPath Studio 2025 Modern)
Objective
We are trying to automate the update of embedded ActiveX textboxes inside a macro-enabled Excel workbook using UiPath Studio 2025 Modern experience.
The CSV contains:
- targetCell: the Excel cell where the textbox is located (e.g., E11, E12…)
- textToInsert: the text we want to paste into each textbox
We want to:
- Loop through all rows in the CSV.
- For each row:
- Double-click the specified cell (from targetCell) to activate the textbox.
- Ctrl+A, Delete, then paste textToInsert.
- Press Enter.
What We’ve Tried
- Used For Each Row in CSV data.
- Used Click with Strict Selector dynamically built as:
xml
CopyEdit
“”
- Set Click Type to DoubleClick, Input Mode to Hardware Events.
- Verified the UI tree has format.
- Scope of targetCell is set to Main.
- Tried different selector combinations, including removing idx, switching to fuzzy selectors, omitting parent elements.
- Ensured delays are added for Excel to load (tried with 30 seconds).
- Issue persists: UiPath clicks only on the first row’s targetCell, opens the textbox, then exits or fails. Loop does not iterate properly.
Symptoms
- Only E11 gets activated no matter what targetCell is.
- “Object reference not set to an instance of an object” or selector not found errors.
- After forcing selector, “Desktop” or unrelated pane is targeted.
- Click doesn’t dynamically update — always tied to original element unless manually reindicated.
Help Needed
- How can we properly configure the Click activity in UiPath 2025 Modern to dynamically double-click a different Excel cell per loop iteration?
- Why does the loop not re-evaluate the selector even though targetCell changes?
- Is there a better alternative for triggering and updating embedded Excel textboxes reliably?