<?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: Pivot Table VBA in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Pivot-Table-VBA-in-SAS/m-p/28322#M1101</link>
    <description>Hi:&lt;BR /&gt;
  The author of that paper provided his email address at the end of the paper (on page 4). You might want to contact him and ask what those numbers were used for.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
Also, for future reference, if you use &amp;lt; or &amp;gt; in your postings, it can sometimes cause your posting to appear truncated because the forum posting software uses &amp;lt; and &amp;gt; as HTML tags. This post &lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt; &lt;BR /&gt;
describes how you have to post &amp;lt; or &amp;gt; symbols in order to convey the correct character and avoid truncation.</description>
    <pubDate>Sun, 07 Nov 2010 04:09:46 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-11-07T04:09:46Z</dc:date>
    <item>
      <title>Pivot Table VBA in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Pivot-Table-VBA-in-SAS/m-p/28321#M1100</link>
      <description>I have used the code in the link below to create a pivot table, which worked great. I was hoping to adapt the code to also create a calculated field from SAS code.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/035-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/035-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
1. I would like to understand what these numbers refer to&lt;BR /&gt;
 -4157, -4112, and -4106 &lt;BR /&gt;
&lt;BR /&gt;
2.Create Calculated Field per "On the pivot table toolbar, choose PivotTable &amp;gt; Formulas &amp;gt; Calculated Field"</description>
      <pubDate>Thu, 04 Nov 2010 15:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Pivot-Table-VBA-in-SAS/m-p/28321#M1100</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-04T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table VBA in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Pivot-Table-VBA-in-SAS/m-p/28322#M1101</link>
      <description>Hi:&lt;BR /&gt;
  The author of that paper provided his email address at the end of the paper (on page 4). You might want to contact him and ask what those numbers were used for.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
Also, for future reference, if you use &amp;lt; or &amp;gt; in your postings, it can sometimes cause your posting to appear truncated because the forum posting software uses &amp;lt; and &amp;gt; as HTML tags. This post &lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt; &lt;BR /&gt;
describes how you have to post &amp;lt; or &amp;gt; symbols in order to convey the correct character and avoid truncation.</description>
      <pubDate>Sun, 07 Nov 2010 04:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Pivot-Table-VBA-in-SAS/m-p/28322#M1101</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-07T04:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table VBA in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Pivot-Table-VBA-in-SAS/m-p/28323#M1102</link>
      <description>Those numbers of several of thousands Excel "magic" contstants:&lt;BR /&gt;
&lt;BR /&gt;
From Excel,   (alt-F11) Macro Editor,  (F2) Object Browser,&lt;BR /&gt;
&lt;BR /&gt;
Const xlTextQualifierNone = -4142 (&amp;amp;HFFFFEFD2)&lt;BR /&gt;
Const xlSum = -4157 (&amp;amp;HFFFFEFC3)&lt;BR /&gt;
Const xlCount = -4112 (&amp;amp;HFFFFEFF0)&lt;BR /&gt;
Const xlAverage = -4106 (&amp;amp;HFFFFEFF6)&lt;BR /&gt;
&lt;BR /&gt;
In this example they are passed as options to VB functions, e.g.&lt;BR /&gt;
 &lt;BR /&gt;
XL.Workbooks.OpenText&lt;BR /&gt;
Sub OpenText(Filename As String, [Origin], [StartRow], [DataType], [TextQualifier &lt;BR /&gt;
&lt;BR /&gt;
As XlTextQualifier = xlTextQualifierDoubleQuote], [ConsecutiveDelimiter], [Tab], &lt;BR /&gt;
&lt;BR /&gt;
[Semicolon], [Comma], [Space], [Other], [OtherChar], [FieldInfo], [TextVisualLayout], [DecimalSeparator], [ThousandsSeparator], [TrailingMinusNumbers], [Local])&lt;BR /&gt;
&lt;BR /&gt;
Best,&lt;BR /&gt;
-Matt</description>
      <pubDate>Tue, 09 Nov 2010 15:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Pivot-Table-VBA-in-SAS/m-p/28323#M1102</guid>
      <dc:creator>MattF</dc:creator>
      <dc:date>2010-11-09T15:52:32Z</dc:date>
    </item>
  </channel>
</rss>

