<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Quick PivotTables</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mike Alexander</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40521</link>
		<dc:creator>Mike Alexander</dc:creator>
		<pubDate>Fri, 07 Aug 2009 19:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40521</guid>
		<description>&lt;p&gt;Alt+D+P brings up the old PivotTable Wizard.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Alt+D+P brings up the old PivotTable Wizard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gruff999</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40095</link>
		<dc:creator>gruff999</dc:creator>
		<pubDate>Wed, 01 Jul 2009 16:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40095</guid>
		<description>&lt;p&gt;Jan, not to be picky but the copyright is important &quot;Commands not in the Ribbon © MS Corporation 2005-2010?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jan, not to be picky but the copyright is important &#8220;Commands not in the Ribbon © MS Corporation 2005-2010?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Karel Pieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40089</link>
		<dc:creator>Jan Karel Pieterse</dc:creator>
		<pubDate>Wed, 01 Jul 2009 05:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40089</guid>
		<description>&lt;p&gt;Tushar: The wiz is still available in 2007, it is one of the &quot;Commands not in the ribbon&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Tushar: The wiz is still available in 2007, it is one of the &#8220;Commands not in the ribbon&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Hager</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40080</link>
		<dc:creator>David Hager</dc:creator>
		<pubDate>Tue, 30 Jun 2009 21:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40080</guid>
		<description>&lt;p&gt;&quot;Have you seen the wizard for Pivot tables? They couldn&#039;t put that on one screen?&quot;&lt;/p&gt;
&lt;p&gt;You realize that Rob B. made the PT wizard for Microsoft?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;Have you seen the wizard for Pivot tables? They couldn&#8217;t put that on one screen?&#8221;</p>
<p>You realize that Rob B. made the PT wizard for Microsoft?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Martim</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40073</link>
		<dc:creator>Robert Martim</dc:creator>
		<pubDate>Tue, 30 Jun 2009 02:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40073</guid>
		<description>&lt;p&gt;Dick,&lt;/p&gt;
&lt;p&gt;Using the PivotCache and defining the version, you&#039;d get the classic layout instead of the &quot;dumbed down&quot; version of it. Something like this:&lt;/p&gt;
&lt;p&gt;Sub CreatePivotTable()&lt;br&gt;
    Dim pcNew   As PivotCache&lt;br&gt;
    Dim ptNew   As PivotTable&lt;br&gt;
    Dim rData   As Range&lt;/p&gt;
&lt;p&gt;    Const sPTNAME As String = &quot;PT&quot;&lt;/p&gt;
&lt;p&gt;    On Error GoTo Err_Handler&lt;br&gt;
    If TypeName(Selection) = &quot;Range&quot; Then&lt;br&gt;
        Set rData = Selection.CurrentRegion&lt;/p&gt;
&lt;p&gt;        Set pcNew = ThisWorkbook.PivotCaches.Add(xlDatabase, rData)&lt;br&gt;
        Set ptNew = pcNew.CreatePivotTable(TableDestination:=&quot;&quot;, _&lt;br&gt;
            tablename:=sPTNAME &amp; ThisWorkbook.PivotCaches.Count + 1, _&lt;br&gt;
            defaultversion:=xlPivotTableVersion10)&lt;br&gt;
    End If&lt;br&gt;
    Exit Sub&lt;br&gt;
Err_Handler:&lt;br&gt;
    MsgBox Err.Description, vbCritical, Err.Number&lt;br&gt;
End Sub&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick,</p>
<p>Using the PivotCache and defining the version, you&#8217;d get the classic layout instead of the &#8220;dumbed down&#8221; version of it. Something like this:</p>
<p>Sub CreatePivotTable()<br />
    Dim pcNew   As PivotCache<br />
    Dim ptNew   As PivotTable<br />
    Dim rData   As Range</p>
<p>    Const sPTNAME As String = &#8220;PT&#8221;</p>
<p>    On Error GoTo Err_Handler<br />
    If TypeName(Selection) = &#8220;Range&#8221; Then<br />
        Set rData = Selection.CurrentRegion</p>
<p>        Set pcNew = ThisWorkbook.PivotCaches.Add(xlDatabase, rData)<br />
        Set ptNew = pcNew.CreatePivotTable(TableDestination:=&#8221;", _<br />
            tablename:=sPTNAME &amp; ThisWorkbook.PivotCaches.Count + 1, _<br />
            defaultversion:=xlPivotTableVersion10)<br />
    End If<br />
    Exit Sub<br />
Err_Handler:<br />
    MsgBox Err.Description, vbCritical, Err.Number<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40063</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Mon, 29 Jun 2009 18:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40063</guid>
		<description>&lt;p&gt;You dont have to go through the wizard. Just say finish on the first dialog.&lt;br&gt;
Alt + D + P + F&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You dont have to go through the wizard. Just say finish on the first dialog.<br />
Alt + D + P + F</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Mehta</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40062</link>
		<dc:creator>Tushar Mehta</dc:creator>
		<pubDate>Mon, 29 Jun 2009 18:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40062</guid>
		<description>&lt;p&gt;Dick wrote:  &quot;...just want to make a pivot table:&lt;/p&gt;
&lt;p&gt;    * from an Excel range&lt;br&gt;
    * that I&#039;ve already selected&lt;br&gt;
    * and I want it on a new sheet&lt;br&gt;
...&quot;&lt;/p&gt;
&lt;p&gt;That&#039;s the problem.  There are two different scenarios for my PTs and neither matches yours.&lt;/p&gt;
&lt;p&gt;1) Select a cell in the source range, put the PT on the same worksheet.&lt;/p&gt;
&lt;p&gt;2) Put the PT on the current worksheet, the source is another sheet, more often than not in another workbook.&lt;/p&gt;
&lt;p&gt;Also, FWIW, in 2007, there&#039;s a single dialog box.  No wizard.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick wrote:  &#8220;&#8230;just want to make a pivot table:</p>
<p>    * from an Excel range<br />
    * that I&#8217;ve already selected<br />
    * and I want it on a new sheet<br />
&#8230;&#8221;</p>
<p>That&#8217;s the problem.  There are two different scenarios for my PTs and neither matches yours.</p>
<p>1) Select a cell in the source range, put the PT on the same worksheet.</p>
<p>2) Put the PT on the current worksheet, the source is another sheet, more often than not in another workbook.</p>
<p>Also, FWIW, in 2007, there&#8217;s a single dialog box.  No wizard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zach</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40061</link>
		<dc:creator>zach</dc:creator>
		<pubDate>Mon, 29 Jun 2009 17:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40061</guid>
		<description>&lt;p&gt;I thought you were in love with those keyboard shortcuts.  In XL07, it&#039;s just Alt-N, V, Enter, Enter.  The wizard flashes on the screen and disappears before it has a chance to annoy you.  I forgot the 2003 equivalent, but I remember something similar existed.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I thought you were in love with those keyboard shortcuts.  In XL07, it&#8217;s just Alt-N, V, Enter, Enter.  The wizard flashes on the screen and disappears before it has a chance to annoy you.  I forgot the 2003 equivalent, but I remember something similar existed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Consultant Ninja</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/29/quick-pivottables/#comment-40060</link>
		<dc:creator>Consultant Ninja</dc:creator>
		<pubDate>Mon, 29 Jun 2009 17:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2654#comment-40060</guid>
		<description>&lt;p&gt;Dick-  Try this.  not the most elegant code, but gets the job done.&lt;/p&gt;
&lt;p&gt;Sub PivotCreate()&lt;br&gt;
&#039; Creates it as the same worksheet template&lt;br&gt;
&#039; Renames it as the current sheet, adding -pt&lt;br&gt;
&#039; Turns off autoformat&lt;br&gt;
&#039; Puts the default field orientation as columns, not rows&lt;/p&gt;
&lt;p&gt;MaxX = Selection.Columns.Count&lt;br&gt;
MaxY = Selection.Rows.Count&lt;br&gt;
Test = MaxX + MaxY&lt;/p&gt;
&lt;p&gt;If (Test  28) Then&lt;br&gt;
    NewSheet = Left(CurrentSheet, 28) &amp; &quot;-pt&quot;&lt;br&gt;
Else&lt;br&gt;
    NewSheet = CurrentSheet &amp; &quot;-pt&quot;&lt;br&gt;
End If&lt;/p&gt;
&lt;p&gt;Test = True&lt;br&gt;
Do While (Test = True)&lt;br&gt;
    Test = DoesWorkSheetExist(NewSheet)&lt;br&gt;
    &#039;MsgBox NewSheet &amp; &quot; exists?  &quot; &amp; Test &amp; Len(NewSheet)&lt;/p&gt;
&lt;p&gt;    If (Test = True) Then&lt;br&gt;
        If (Len(NewSheet) &gt; 28) Then&lt;br&gt;
            NewSheet = Left(NewSheet, 28) &amp; &quot;-pt&quot;&lt;br&gt;
        Else&lt;br&gt;
            NewSheet = NewSheet &amp; &quot;-pt&quot;&lt;br&gt;
        End If&lt;br&gt;
        If (Len(NewSheet) = 31) Then&lt;br&gt;
            MsgBox &quot;Ran out of space for the sheet name!  Stopping Macro.&quot;&lt;br&gt;
            Exit Sub&lt;br&gt;
        End If&lt;br&gt;
    End If&lt;br&gt;
Loop&lt;/p&gt;
&lt;p&gt;Sheets.Add Type:=&quot;Worksheet&quot;&lt;br&gt;
ActiveSheet.Name = NewSheet&lt;br&gt;
ActiveSheet.Move After:=Sheets(CurrentSheet)&lt;/p&gt;
&lt;p&gt;ActiveWorkbook.PivotCaches.Add( _&lt;br&gt;
    SourceType:=xlDatabase, _&lt;br&gt;
    SourceData:=InputRange).CreatePivotTable _&lt;br&gt;
    TableDestination:=ActiveSheet.Range(&quot;B5?), _&lt;br&gt;
    DefaultVersion:=xlPivotTableVersion10&lt;/p&gt;
&lt;p&gt;Range(&quot;B5?).Select&lt;/p&gt;
&lt;p&gt;ActiveSheet.PivotTables(1).HasAutoFormat = False&lt;br&gt;
ActiveSheet.PivotTables(1).NullString = &quot;0?&lt;/p&gt;
&lt;p&gt;ActiveSheet.PivotTables(1).AddDataField ActiveSheet.PivotTables(1).PivotFields(1), &quot;Sum of A&quot;, xlSum&lt;br&gt;
ActiveSheet.PivotTables(1).AddDataField ActiveSheet.PivotTables(1).PivotFields(2), &quot;Sum of B&quot;, xlSum&lt;/p&gt;
&lt;p&gt;ActiveSheet.PivotTables(1).DataPivotField.Orientation = xlColumnField&lt;br&gt;
ActiveSheet.PivotTables(1).DataPivotField.Position = 1&lt;br&gt;
ActiveSheet.PivotTables(1).DataPivotField.Orientation = xlHidden&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick-  Try this.  not the most elegant code, but gets the job done.</p>
<p>Sub PivotCreate()<br />
&#8216; Creates it as the same worksheet template<br />
&#8216; Renames it as the current sheet, adding -pt<br />
&#8216; Turns off autoformat<br />
&#8216; Puts the default field orientation as columns, not rows</p>
<p>MaxX = Selection.Columns.Count<br />
MaxY = Selection.Rows.Count<br />
Test = MaxX + MaxY</p>
<p>If (Test  28) Then<br />
    NewSheet = Left(CurrentSheet, 28) &amp; &#8220;-pt&#8221;<br />
Else<br />
    NewSheet = CurrentSheet &amp; &#8220;-pt&#8221;<br />
End If</p>
<p>Test = True<br />
Do While (Test = True)<br />
    Test = DoesWorkSheetExist(NewSheet)<br />
    &#8216;MsgBox NewSheet &amp; &#8221; exists?  &#8221; &amp; Test &amp; Len(NewSheet)</p>
<p>    If (Test = True) Then<br />
        If (Len(NewSheet) &gt; 28) Then<br />
            NewSheet = Left(NewSheet, 28) &amp; &#8220;-pt&#8221;<br />
        Else<br />
            NewSheet = NewSheet &amp; &#8220;-pt&#8221;<br />
        End If<br />
        If (Len(NewSheet) = 31) Then<br />
            MsgBox &#8220;Ran out of space for the sheet name!  Stopping Macro.&#8221;<br />
            Exit Sub<br />
        End If<br />
    End If<br />
Loop</p>
<p>Sheets.Add Type:=&#8221;Worksheet&#8221;<br />
ActiveSheet.Name = NewSheet<br />
ActiveSheet.Move After:=Sheets(CurrentSheet)</p>
<p>ActiveWorkbook.PivotCaches.Add( _<br />
    SourceType:=xlDatabase, _<br />
    SourceData:=InputRange).CreatePivotTable _<br />
    TableDestination:=ActiveSheet.Range(&#8220;B5?), _<br />
    DefaultVersion:=xlPivotTableVersion10</p>
<p>Range(&#8220;B5?).Select</p>
<p>ActiveSheet.PivotTables(1).HasAutoFormat = False<br />
ActiveSheet.PivotTables(1).NullString = &#8220;0?</p>
<p>ActiveSheet.PivotTables(1).AddDataField ActiveSheet.PivotTables(1).PivotFields(1), &#8220;Sum of A&#8221;, xlSum<br />
ActiveSheet.PivotTables(1).AddDataField ActiveSheet.PivotTables(1).PivotFields(2), &#8220;Sum of B&#8221;, xlSum</p>
<p>ActiveSheet.PivotTables(1).DataPivotField.Orientation = xlColumnField<br />
ActiveSheet.PivotTables(1).DataPivotField.Position = 1<br />
ActiveSheet.PivotTables(1).DataPivotField.Orientation = xlHidden</p>
<p>End Sub</p>
]]></content:encoded>
	</item>
</channel>
</rss>

