Set web selector in Attach Window Input

Hi,
I need to set the value of a selector in attach window input.
I tried many things but its not picking up the value of the variable strFinancialFilename. FileName changes for every scenario, hence I need to have a variable. Please suggest. Please note - Attach Window Input selector is a UI editor and not a String based

“<wnd app=‘excel.exe’ cls=‘XLMAIN’ title='” & strFinancialFileName & “‘- Excel’ />”
“<wnd app=‘excel.exe’ cls=‘XLMAIN’ title='” + strFinancialFileName + “‘- Excel’ />”

If you don’t have multiple excels open, you can use selector with wildcard.

“<wnd app=‘excel.exe’ cls=‘XLMAIN’ title=’*- Excel’ />”

Hi Pragyan,
You can try this:
Create a variable called selector.
Use assign activity and build the selector (copy the selector and use the variable)
Assign selector variable in selector section.

Let me know if you need more details.
Thanks,
Tuhin