0 votes
1 view
in RPA by (12.8k points)

I open an Excel workbook with a click on a button in another program which works pretty fine. Now I would like to store the data of the workbook in a collection without saving the excel file. The name of the workbook changes dynamically. How can I save the data of the workbook in a collection?

I've already tried to use an Action stage with the Excel VBO Business Object and 'Get Worksheet as Collection' Action but as I don't know what to enter as a Workbook name nothing happens

1 Answer

0 votes
by (29.8k points)
The MS Excel VBO action "Attach" will attach to whatever instance of Excel you happen to be running, regardless of any workbook names

. It will output the "handle" data item, you can then use that item with the "Get Worksheet as Collection" action.
So this way you don't need to save the file.

However, be aware that this will not work if you have more than one instance of Excel running.
Welcome to Intellipaat Community. Get your technical queries answered by top developers !