<?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 not a great solution, but one in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47419#M3169</link>
    <description>not a great solution, but one way to do it is to create a RefreshAll macro within the workbook, then use Excel VBO ""Run Macro"".</description>
    <pubDate>Tue, 03 Oct 2017 16:50:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-03T16:50:00Z</dc:date>
    <item>
      <title>Pivot refresh</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47418#M3168</link>
      <description>Hi,

I'm a little bit stuck with pivot refresh in Excel. I did an object in Excel VBO named "Pivot Refresh" with code below:

Dim wb, ws As Object
Dim excel, sheet As Object

wb = GetWorkbook(handle, workbookname)
ws = GetWorksheet(handle, workbookname, worksheetname)

wb.Activate()
ws.Activate()
excel = ws.Application
sheet = excel.ActivateSheet

sheet.PivotTables(pivotname).RefreshTable


This is my last code, unfortunately not working...Check Code returns no mistakes. 
After execution the object I get message: "Could not execute code stage because exception thrown by code stage: The given key was not present in the dictionary.
Can you help me with this problem?</description>
      <pubDate>Tue, 03 Oct 2017 11:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47418#M3168</guid>
      <dc:creator>DamianSurlicki1</dc:creator>
      <dc:date>2017-10-03T11:47:00Z</dc:date>
    </item>
    <item>
      <title>not a great solution, but one</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47419#M3169</link>
      <description>not a great solution, but one way to do it is to create a RefreshAll macro within the workbook, then use Excel VBO ""Run Macro"".</description>
      <pubDate>Tue, 03 Oct 2017 16:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47419#M3169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-03T16:50:00Z</dc:date>
    </item>
    <item>
      <title>I think the error that you</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47420#M3170</link>
      <description>I think the error that you have is related to the handle that you use, try to create a new Excel instance and pass its handle to your code.</description>
      <pubDate>Tue, 03 Oct 2017 18:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47420#M3170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-03T18:37:00Z</dc:date>
    </item>
    <item>
      <title>I am using this code:</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47421#M3171</link>
      <description>I am using this code:
dim worksheet as object
worksheet= GetWorksheet(Handle, Workbook_name, Worksheet_name)
worksheet.PivotTables(pivot_name).PivotCache.Refresh
And it works for me.</description>
      <pubDate>Wed, 04 Oct 2017 11:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47421#M3171</guid>
      <dc:creator>AndrzejKaczor</dc:creator>
      <dc:date>2017-10-04T11:09:00Z</dc:date>
    </item>
    <item>
      <title>@Andrzej.Kaczor thank you!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47422#M3172</link>
      <description>@Andrzej.Kaczor thank you!!!</description>
      <pubDate>Wed, 29 Nov 2017 13:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Pivot-refresh/m-p/47422#M3172</guid>
      <dc:creator>RohitSonawane2</dc:creator>
      <dc:date>2017-11-29T13:15:00Z</dc:date>
    </item>
  </channel>
</rss>

