<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Different sheets of excel in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63071#M16069</link>
    <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="6cd356c1-51e2-4bf3-991c-223f08646a46" data-tag-text="@Michael O'Neill" href="https://community.blueprism.com/network/profile?UserKey=6cd356c1-51e2-4bf3-991c-223f08646a46" data-itemmentionkey="d7b711b0-69f0-4149-a7b8-ca36f491a97a"&gt;@Michael O'Neill&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually, I am not the originator of the question. &lt;BR /&gt;&lt;BR /&gt;I'm not too sure what you are answering here. By defining my collection of "Worksheet Data", I can already define a column as a collection and by not defining the fields of that collection column I can assign any collection to it.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1; padding-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30784.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30910iF2A22564AECF02E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="30784.png" alt="30784.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;I just did not include the image of this definition because it was implied from the image of the results.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Apr 2023 20:28:00 GMT</pubDate>
    <dc:creator>MichealCharron</dc:creator>
    <dc:date>2023-04-20T20:28:00Z</dc:date>
    <item>
      <title>Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63065#M16063</link>
      <description>&lt;P&gt;Hi team,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have an excel with multiple sheets, I want to get data from all worksheets into different collections, the number of sheets can vary.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;aanchal mathur&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2023 11:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63065#M16063</guid>
      <dc:creator>aanchalm</dc:creator>
      <dc:date>2023-04-20T11:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63066#M16064</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/28828"&gt;@aanchalm&lt;/a&gt; - One of way of doing it is to get all the worksheets in the excel and set counter to 0 and set worksheet position - Follow below approach &amp;gt; Get worksheet names as Collection &amp;gt; Loop and Set Positions with Counter (my requirement was to get worksheet as collection for 3 worksheet in the start but you can customise as per your own requirements) &amp;gt; Get worksheet as Collection&amp;nbsp; :&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Example:&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30764.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30894iB0C78F3B533A8F90/image-size/large?v=v2&amp;amp;px=999" role="button" title="30764.png" alt="30764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30765.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30895i8ADB5806970597E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="30765.png" alt="30765.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mukesh Kumar - Senior Automation Developer&lt;BR /&gt;&lt;BR /&gt;NHS, England, United Kingdom, GB&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 11:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63066#M16064</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-04-20T11:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63067#M16065</link>
      <description>&lt;P&gt;But in case we do not know how many sheets are there then how can we set the choice criterion?&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;aanchal mathur&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2023 12:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63067#M16065</guid>
      <dc:creator>aanchalm</dc:creator>
      <dc:date>2023-04-20T12:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63068#M16066</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/28828"&gt;@aanchalm&lt;/a&gt; : If you could explain the scenario how exactly are you planning to use these collection data or to be feeding as input - I will be able to suggest you the approach accordingly - but Ideally Input files if its meant to be fed as Data, it should have some sort of certainty around it - It can go around to have "N" number of sheets having the input data - that would loose its feasibility at some point in time, either it needs fixing or some sort of knowledge pattern for possible sheets occurrence to design a solution around it .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mukesh Kumar - Senior Automation Developer&lt;BR /&gt;&lt;BR /&gt;NHS, England, United Kingdom, GB&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 14:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63068#M16066</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-04-20T14:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63069#M16067</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/28828"&gt;@aanchalm&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You could always use a collection to house other collections. As long as you are not working with 100s of thousands of rows in each worksheet, Blue Prism should be able to handle it okay. Take the following stages:&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="width: 300px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30775.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30906iAE98C7B71985EB88/image-size/large?v=v2&amp;amp;px=999" role="button" title="30775.png" alt="30775.png" /&gt;&lt;/span&gt;&lt;/TD&gt;
&lt;TD style="padding-left: 40px;"&gt;&lt;SPAN style="color: rgb(224, 62, 45);"&gt;Note: I did not include the Excel opening and closing of the workbook in the Image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;Get the worksheet names into the "Worksheet Names" collection.&lt;/LI&gt;
&lt;LI&gt;Loop through the "Worksheet Names" collection.&lt;/LI&gt;
&lt;LI&gt;Add a row to the "Worksheet Data" collection&lt;/LI&gt;
&lt;LI&gt;Assign the worksheet name to the current row in the "Worksheet Data" collection.&lt;/LI&gt;
&lt;LI&gt;Get the worksheet data and assign directly into the current row in the "Worksheet Data" collection.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt;What you end up with is a collection of collections that you can loop through and process individually:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30776.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30905i39312A2D8E7ED0B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="30776.png" alt="30776.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63069#M16067</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2023-04-20T15:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63070#M16068</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/28828"&gt;@aanchalm&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a solution for this but it will require a little bit of coding hopefully you're familiar enough with how to do this but I'll try to break it down as much as possible. Firstly you will need to create an action in the Utility - Collection manipulation vbo (or you could create a a separate vbo but to keep it simple i created it here). Add a code stage with the following code:&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Output_Collection = Input_Collection.Copy&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Dim Newcol As DataColumn = New DataColumn(Column_Name, GetType(DataTable))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Output_Collection.Columns.Add(Newcol)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Output_Collection.Columns(Newcol.ColumnName.ToString).SetOrdinal(Column_Index)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Success = True&lt;/P&gt;
&lt;P&gt;Catch ex As Exception&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Message = ex.Message.ToString&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Success = False&lt;/P&gt;
&lt;P&gt;End Try&lt;BR /&gt;&lt;BR /&gt;The inputs are - Input Collection, Column Index, Column Name , and the outputs are -&amp;nbsp;Output Collection, Message, Success&lt;BR /&gt;Once you have created the action then you need to create a flow that will get all the worksheet names, add an embedded collection to a collection, then for each worksheet you will add a row to the desired collection out then add the worksheet data to it. My flow is shown below and when you are done you will have a collection with a single column and multiple rows of embedded collections. For the embedded collecitons action it will&amp;nbsp; create the first column with no row data but you need to add the column index as 0 since its adding the column to a collection that doesnt already contain defined columns or any data. Hopefully this is clear and see the screenshots below for reference.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30777.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30904i05855A0BEC2731A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="30777.png" alt="30777.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30778.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30909i2DED53C5450B4E9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="30778.png" alt="30778.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30779.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30907i61FC41B394F9C058/image-size/large?v=v2&amp;amp;px=999" role="button" title="30779.png" alt="30779.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30780.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30908i29881226F394D383/image-size/large?v=v2&amp;amp;px=999" role="button" title="30780.png" alt="30780.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30781.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30912i63AFEE4146BED0AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="30781.png" alt="30781.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 20:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63070#M16068</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2023-04-20T20:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63071#M16069</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="6cd356c1-51e2-4bf3-991c-223f08646a46" data-tag-text="@Michael O'Neill" href="https://community.blueprism.com/network/profile?UserKey=6cd356c1-51e2-4bf3-991c-223f08646a46" data-itemmentionkey="d7b711b0-69f0-4149-a7b8-ca36f491a97a"&gt;@Michael O'Neill&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually, I am not the originator of the question. &lt;BR /&gt;&lt;BR /&gt;I'm not too sure what you are answering here. By defining my collection of "Worksheet Data", I can already define a column as a collection and by not defining the fields of that collection column I can assign any collection to it.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1; padding-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30784.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30910iF2A22564AECF02E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="30784.png" alt="30784.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;I just did not include the image of this definition because it was implied from the image of the results.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2023 20:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63071#M16069</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2023-04-20T20:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63072#M16070</link>
      <description>&lt;P&gt;hi Michael I realized after posting it wasnt you that had asked the question. I might have misunderstood what the issue was on their collection (not reading it properly), sorry for any confusion.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2023 20:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63072#M16070</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2023-04-20T20:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Different sheets of excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63073#M16071</link>
      <description>&lt;P&gt;Understood Michael, thank you so much&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;aanchal mathur&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Apr 2023 01:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Different-sheets-of-excel/m-p/63073#M16071</guid>
      <dc:creator>aanchalm</dc:creator>
      <dc:date>2023-04-21T01:45:00Z</dc:date>
    </item>
  </channel>
</rss>

