<?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: Refreshing a series of pivot tables in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Refreshing-a-series-of-pivot-tables/m-p/65952#M7663</link>
    <description>I'm not sure if this helps, but I recently had to write a program to identify all the chart objects in a workbook.  You can find out a lot about a workbook using the topics dde triplet:&lt;BR /&gt;
&lt;BR /&gt;
filename xltopics dde'excel|system!topics' lrecl=32000;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
     length topic $ 1000;&lt;BR /&gt;
     infile xltopics pad dsd notab dlm='09'x;&lt;BR /&gt;
     input topic $ @@;&lt;BR /&gt;
     put topic=;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
A good reference is Excel Exposed: Using Dynamic Data Exchange to Extract Metadata from MS Excel Workbooks by Koen Vyverman.  You can find it and more of his papers at &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.sas-consultant.com/professional/papers.html" target="_blank"&gt;http://www.sas-consultant.com/professional/papers.html&lt;/A&gt;</description>
    <pubDate>Fri, 18 Sep 2009 21:03:49 GMT</pubDate>
    <dc:creator>Petersi</dc:creator>
    <dc:date>2009-09-18T21:03:49Z</dc:date>
    <item>
      <title>Refreshing a series of pivot tables</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Refreshing-a-series-of-pivot-tables/m-p/65951#M7662</link>
      <description>Hello&lt;BR /&gt;
&lt;BR /&gt;
I am taking over the maintenance of a SAS reporting program that updates 21 existing excel workbook files using DDE. &lt;BR /&gt;
&lt;BR /&gt;
Each Excel Workbook file contains:&lt;BR /&gt;
 &lt;BR /&gt;
a. 4 worksheets that have 4 charts each&lt;BR /&gt;
b. 4 worksheets that contain one report each&lt;BR /&gt;
c. 1 worksheet that contains 11 pivot tables&lt;BR /&gt;
d. 1 worksheet that contains 4 pivot tables.&lt;BR /&gt;
&lt;BR /&gt;
The existing program uses DDE to update an Excel Model file and then it saves it under the current months name. &lt;BR /&gt;
&lt;BR /&gt;
Question &lt;BR /&gt;
&lt;BR /&gt;
I would like to retrieve a list of all the pivot table names that exist in the excel file and then perform a refresh on each pivot table using DDE. &lt;BR /&gt;
&lt;BR /&gt;
This would save me over 315 manual pivot table refreshes!&lt;BR /&gt;
&lt;BR /&gt;
Does anyone out there know how to do this?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
some code to retrieve the list of pivot tables...&lt;BR /&gt;
&lt;BR /&gt;
put '[pivot.refresh("PivotTable5")]';&lt;BR /&gt;
&lt;BR /&gt;
PS.  &lt;BR /&gt;
&lt;BR /&gt;
I would have liked to use the refresh on open, however, my clients do not have&lt;BR /&gt;
access to the external files.</description>
      <pubDate>Fri, 21 Aug 2009 12:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Refreshing-a-series-of-pivot-tables/m-p/65951#M7662</guid>
      <dc:creator>wildhogs</dc:creator>
      <dc:date>2009-08-21T12:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing a series of pivot tables</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Refreshing-a-series-of-pivot-tables/m-p/65952#M7663</link>
      <description>I'm not sure if this helps, but I recently had to write a program to identify all the chart objects in a workbook.  You can find out a lot about a workbook using the topics dde triplet:&lt;BR /&gt;
&lt;BR /&gt;
filename xltopics dde'excel|system!topics' lrecl=32000;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
     length topic $ 1000;&lt;BR /&gt;
     infile xltopics pad dsd notab dlm='09'x;&lt;BR /&gt;
     input topic $ @@;&lt;BR /&gt;
     put topic=;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
A good reference is Excel Exposed: Using Dynamic Data Exchange to Extract Metadata from MS Excel Workbooks by Koen Vyverman.  You can find it and more of his papers at &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.sas-consultant.com/professional/papers.html" target="_blank"&gt;http://www.sas-consultant.com/professional/papers.html&lt;/A&gt;</description>
      <pubDate>Fri, 18 Sep 2009 21:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Refreshing-a-series-of-pivot-tables/m-p/65952#M7663</guid>
      <dc:creator>Petersi</dc:creator>
      <dc:date>2009-09-18T21:03:49Z</dc:date>
    </item>
  </channel>
</rss>

