Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Pivot Tables by Macro

Hi

I have a spreadsheet with five sheets and I would like to develop a macro,
if possible that creates the pivot tables that I require.

I only want the pivot table to count. Can anyone give me a code for pivot
table macros

Column A is the Row Area
Column B is the Column Area
Column B is the Data Area

using the same data I then want to create another pivot table with
Column C as the Row Area
Column B is the Column Area
Column B is the Data Area

I would like the pivot tables to be displayed on the same sheet
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Pivot Tables by Macro

If you record one while you do it manually, you'll have your code.

But just a suggestion...

I'd put the pivottable on its own dedicated sheet. Who knows how big the table
can grow if any of the users start to pivot it on different items???

Max2073 wrote:

Hi

I have a spreadsheet with five sheets and I would like to develop a macro,
if possible that creates the pivot tables that I require.

I only want the pivot table to count. Can anyone give me a code for pivot
table macros

Column A is the Row Area
Column B is the Column Area
Column B is the Data Area

using the same data I then want to create another pivot table with
Column C as the Row Area
Column B is the Column Area
Column B is the Data Area

I would like the pivot tables to be displayed on the same sheet


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Pivot Tables by Macro

When I record it manually and run it, I get the following

Run-time error '1004'
AddFields method of Pivot Table class failed and I am unsure how to fix this.

"Dave Peterson" wrote:

If you record one while you do it manually, you'll have your code.

But just a suggestion...

I'd put the pivottable on its own dedicated sheet. Who knows how big the table
can grow if any of the users start to pivot it on different items???

Max2073 wrote:

Hi

I have a spreadsheet with five sheets and I would like to develop a macro,
if possible that creates the pivot tables that I require.

I only want the pivot table to count. Can anyone give me a code for pivot
table macros

Column A is the Row Area
Column B is the Column Area
Column B is the Data Area

using the same data I then want to create another pivot table with
Column C as the Row Area
Column B is the Column Area
Column B is the Data Area

I would like the pivot tables to be displayed on the same sheet


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
refreshing pivot tables with a macro Lou Sanderson Excel Discussion (Misc queries) 10 October 17th 06 07:57 PM
pivot tables macro Hru48 Excel Discussion (Misc queries) 14 July 6th 06 04:25 PM
Spinner macro for Pivot Tables. KipNowlin Excel Worksheet Functions 2 July 25th 05 06:11 AM
Macro for Pivot Tables Thomas Excel Discussion (Misc queries) 1 March 15th 05 01:03 AM
refresh pivot tables through a macro dolph Excel Worksheet Functions 1 January 12th 05 03:16 AM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"