<?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: Excel : Updating Chart/graph of one workbook with data source from another workbook in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73247#M25852</link>
    <description>No problem let me know how it goes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 07 May 2021 15:06:00 GMT</pubDate>
    <dc:creator>michaeloneil</dc:creator>
    <dc:date>2021-05-07T15:06:00Z</dc:date>
    <item>
      <title>Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73242#M25847</link>
      <description>Hi ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can we update the existing chart/graph of one excel workbook using the data source from another workbook.&amp;nbsp; Is it possible to do it from blue prism code stage / excel vbo ? Pls guide.&lt;BR /&gt;Thanks in advance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Ranveer&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;THAKUR RANVEER SINGH&lt;BR /&gt;RPA DEVELOPER&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 06 May 2021 18:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73242#M25847</guid>
      <dc:creator>THAKUR_RANVEERS</dc:creator>
      <dc:date>2021-05-06T18:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73243#M25848</link>
      <description>Hi, Thakur!&lt;BR /&gt;Could you give more details about the scenario?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Emerson Ferreira&lt;BR /&gt;Sr Business Analyst&lt;BR /&gt;Avanade Brasil&lt;BR /&gt;Recife&lt;BR /&gt;081988869544&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 06 May 2021 18:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73243#M25848</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2021-05-06T18:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73244#M25849</link>
      <description>Hello &lt;SPAN&gt;Emerson,&lt;BR /&gt;&lt;BR /&gt;Hope your doing well !&lt;BR /&gt;&lt;BR /&gt;We have two execl templates - Final reports&lt;BR /&gt;&lt;BR /&gt;First report : where we write all the data in different sheets of same excel workbook.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Second report: It has only charts ( no data/ tables ), here we have to update the charts using the data source of &lt;STRONG&gt;First&lt;/STRONG&gt; workbook ( data which we have entered earlier in&lt;SUB&gt;@&lt;/SUB&gt; first excel report).&lt;BR /&gt;&lt;BR /&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Ranveer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;THAKUR RANVEER SINGH&lt;BR /&gt;RPA DEVELOPER&lt;BR /&gt;Asia/Hyderabad&lt;BR /&gt;9849000203&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2021 05:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73244#M25849</guid>
      <dc:creator>THAKUR_RANVEERS</dc:creator>
      <dc:date>2021-05-07T05:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73245#M25850</link>
      <description>Hi Thakur&lt;BR /&gt;&lt;BR /&gt;The simple answer is yes it is possible to change the datasource for your chart to use a data set from another spreadsheet. This would require a new vbo to be created to do this. I did something similar for charts where I wanted to change the xvalue range and chart series range but the data source will be a little different. Below is the code for doing this, although its untested, this should provide you a starting point for your development and might require just some tweaks to get it working. Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Dim sw, dw As Object&lt;BR /&gt;Dim ss, ds As Object&lt;BR /&gt;Dim excel, sheet, source, workbook As Object&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;sw = GetWorkbook(CInt(Handle), Source_Workbook)&lt;BR /&gt;ss = GetWorksheet(CInt(Handle), Source_Workbook, Source_Worksheet)&lt;BR /&gt;sw.Activate()&lt;BR /&gt;ss.Activate()&lt;BR /&gt;excel = ss.Application&lt;BR /&gt;sheet = excel.ActiveSheet&lt;BR /&gt;workbook = excel.ActiveWorkbook&lt;BR /&gt;&lt;BR /&gt;sheet.ChartObjects(Chart_Name).Activate()&lt;BR /&gt;&lt;BR /&gt;workbook.Charts(Chart_Name).SetSourceData(Source:=workbook.Sheets(Source_Worksheet).Range(Source_Range))&lt;BR /&gt;&lt;BR /&gt;Success = True&lt;BR /&gt;Message = Chart_Name &amp;amp; " successfully updated"&lt;BR /&gt;&lt;BR /&gt;Catch e As Exception&lt;BR /&gt;Success = False&lt;BR /&gt;Message = e.Message&lt;BR /&gt;Finally&lt;BR /&gt;sw = Nothing&lt;BR /&gt;ss = Nothing&lt;BR /&gt;dw = Nothing&lt;BR /&gt;ds = Nothing&lt;BR /&gt;excel = Nothing&lt;BR /&gt;sheet = Nothing&lt;BR /&gt;source = Nothing&lt;BR /&gt;&lt;BR /&gt;End Try&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2021 13:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73245#M25850</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2021-05-07T13:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73246#M25851</link>
      <description>Thank you so much Michael !&amp;nbsp; Will check and try to make it work.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;THAKUR RANVEER SINGH&lt;BR /&gt;RPA DEVELOPER&lt;BR /&gt;Asia/Hyderabad&lt;BR /&gt;9849000203&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2021 14:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73246#M25851</guid>
      <dc:creator>THAKUR_RANVEERS</dc:creator>
      <dc:date>2021-05-07T14:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73247#M25852</link>
      <description>No problem let me know how it goes &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2021 15:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73247#M25852</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2021-05-07T15:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73248#M25853</link>
      <description>&lt;P&gt;Perfect solution Michel, I had the idea to do the same, but using a macro, I believe it would be interesting also to create a new action just to "Force" the update of the connection between the two files.&lt;BR /&gt;This can be done through the code below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;ActiveWorkbook.RefreshAll
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;This will cause all template connections to be updated. This ends up helping to refresh the data and even find out if there are any errors in the external data source that prevents the data from being uploaded&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Emerson Ferreira&lt;BR /&gt;Sr Business Analyst&lt;BR /&gt;Avanade Brasil&lt;BR /&gt;Recife&lt;BR /&gt;081988869544&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2021 16:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73248#M25853</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2021-05-07T16:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73249#M25854</link>
      <description>Hi Michael ,&lt;A id="MainCopy_ctl11_ucMessageList_rptMessageList_ProfileImageDisplay_6_NameLink_6" biobubblekey="313d631d-9cef-4790-b59d-3862de573ba8" href="https://community.blueprism.com/network/profile?UserKey=313d631d-9cef-4790-b59d-3862de573ba8" target="_blank" rel="noopener"&gt;Emerson&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I've made some changes to the above code, It is giving some error "Invalid Index".&lt;BR /&gt;Please find the screenshot attached .&lt;BR /&gt;&lt;BR /&gt;Here is the code; as there are two workbooks I have used two handles, Please guide if any others changes are required.&lt;BR /&gt;&lt;BR /&gt;------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Dim ss1,ss2,sw1,sw2 As Object&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;sw1 = GetWorkbook(CInt(Handle1), Source_Workbook1)&lt;BR /&gt;ss1 = sw1.Worksheets(Source_Worksheet1) &lt;BR /&gt;sw2 = GetWorkbook(CInt(Handle2), Source_Workbook2)&lt;BR /&gt;ss2 = sw2.Worksheets(Source_Worksheet2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;''ss2.ChartObjects(Chart_Name).Chart.SetSourceData(Source:=ss1.Range(Source_Range))&lt;BR /&gt;ss2.ChartObjects(Chart_Name).Activate()&lt;BR /&gt;&lt;BR /&gt;sw2.Charts(Chart_Name).SetSourceData(Source:=sw1.Sheets(ss1).Range(Source_Range))&lt;BR /&gt;&lt;BR /&gt;sw2.RefreshAll&lt;BR /&gt;&lt;BR /&gt;Success = True&lt;BR /&gt;Message = Chart_Name &amp;amp; " successfully updated"&lt;BR /&gt;&lt;BR /&gt;Catch e As Exception&lt;BR /&gt;Success = False&lt;BR /&gt;Message = e.Message&lt;BR /&gt;Finally&lt;BR /&gt;sw1 = Nothing&lt;BR /&gt;ss1 = Nothing&lt;BR /&gt;sw2 = Nothing&lt;BR /&gt;ss2 = Nothing&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;End Try&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22254.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22399i6F9AC5EC0A1C33CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="22254.jpg" alt="22254.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;THAKUR RANVEER SINGH&lt;BR /&gt;RPA DEVELOPER&lt;BR /&gt;Asia/Hyderabad&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 10 May 2021 07:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73249#M25854</guid>
      <dc:creator>THAKUR_RANVEERS</dc:creator>
      <dc:date>2021-05-10T07:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73250#M25855</link>
      <description>Hi Thakur&lt;BR /&gt;&lt;BR /&gt;This is telling you the data range you're providing is incorrect. This is the part that can be a little tricky you will need to set the source data to look however excel needs it to be. In this case it might look something like this ='C:\Users\myfolders\[MyExcelFile.xlsx]WorksheetName'!$E$3/'C:\Users\myfolders\[MyExcelFile.xlsx]WorksheetName'!$F$3&lt;BR /&gt;&lt;BR /&gt;E3 and F3 will be the data startrange and data end range. You would try in excel to record a macro first when you change the data source and this will let you see how the sourcedata reference looks when you change it to reference a different workbook.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1854"&gt;@EmersonF&lt;/a&gt; The refresh is a good idea but i think in this case Thakur wants to change where the data is being referenced in the graph completely and get the info from a different workbook so refreshing the data would change this.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 10 May 2021 15:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73250#M25855</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2021-05-10T15:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel : Updating Chart/graph of one workbook with data source from another workbook</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73251#M25856</link>
      <description>@Thakur &amp;nbsp;I believe that the shortest way to work would be to follow &lt;A class="user-content-mention" data-sign="@" data-contactkey="ddd4d6a3-af39-4c64-8db4-cdb1d05ed669" data-tag-text="@Michael ONeil" href="https://community.blueprism.com/network/profile?UserKey=ddd4d6a3-af39-4c64-8db4-cdb1d05ed669" data-itemmentionkey="58c03cdb-7316-4b9b-9aae-9fe5dba35cbd"&gt;@Michael ONeil&lt;/A&gt; advice, do the work manually by recording a macro, then see what steps are needed and take as reference the paths he performs. ​​​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Emerson Ferreira&lt;BR /&gt;Sr Business Analyst&lt;BR /&gt;Avanade Brasil&lt;BR /&gt;Recife&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 10 May 2021 15:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Updating-Chart-graph-of-one-workbook-with-data-source-from/m-p/73251#M25856</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2021-05-10T15:37:00Z</dc:date>
    </item>
  </channel>
</rss>

