PC Review


Reply
Thread Tools Rate Thread

can you record a macro that will create/format a pivot tablle?

 
 
James
Guest
Posts: n/a
 
      11th Dec 2007
Anyone know if you can use the "record macro" function to record the creation
of a pivot table?
 
Reply With Quote
 
 
 
 
iliace
Guest
Posts: n/a
 
      11th Dec 2007
On Dec 11, 4:15 pm, James <Ja...@discussions.microsoft.com> wrote:
> Anyone know if you can use the "record macro" function to record the creation
> of a pivot table?


Absolutely. In fact, that's one of the best ways to figure out the
PivotCache and PivotTable objects.
 
Reply With Quote
 
James
Guest
Posts: n/a
 
      12th Dec 2007
I am trying to record a macro that creates a pivot table, and I am getting an
error...I get a "run time error 1004: AddFields method of PivotTable class
failed". I have lowered my security settings, selected to trust access to VBA
project...any other suggestions?

"iliace" wrote:

> On Dec 11, 4:15 pm, James <Ja...@discussions.microsoft.com> wrote:
> > Anyone know if you can use the "record macro" function to record the creation
> > of a pivot table?

>
> Absolutely. In fact, that's one of the best ways to figure out the
> PivotCache and PivotTable objects.
>

 
Reply With Quote
 
iliace
Guest
Posts: n/a
 
      12th Dec 2007
Can you post the macro? Also, what version of Excel are you using?


On Dec 12, 11:00 am, James <Ja...@discussions.microsoft.com> wrote:
> I am trying to record a macro that creates a pivot table, and I am getting an
> error...I get a "run time error 1004: AddFields method of PivotTable class
> failed". I have lowered my security settings, selected to trust access to VBA
> project...any other suggestions?
>
>
>
> "iliace" wrote:
> > On Dec 11, 4:15 pm, James <Ja...@discussions.microsoft.com> wrote:
> > > Anyone know if you can use the "record macro" function to record the creation
> > > of a pivot table?

>
> > Absolutely. In fact, that's one of the best ways to figure out the
> > PivotCache and PivotTable objects.- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
James
Guest
Posts: n/a
 
      13th Dec 2007
Ok...I was trying to record a macro of creating a pivot table using the
wizard, and it was not working. If I create the blank pivot table, and then
drag and drop fields from the field list, it will record now. But, I am still
getting some bug errors, but I think it is because I have too many rows in my
source data. there are 16,000 rows, and if I decrease the number of rows that
the pivot table is based on to under 10,000, it works. Sounds right? There is
a 10,000 row limit? Oh...and the new company I am working for is using Excel
2003.

"iliace" wrote:

> Can you post the macro? Also, what version of Excel are you using?
>
>
> On Dec 12, 11:00 am, James <Ja...@discussions.microsoft.com> wrote:
> > I am trying to record a macro that creates a pivot table, and I am getting an
> > error...I get a "run time error 1004: AddFields method of PivotTable class
> > failed". I have lowered my security settings, selected to trust access to VBA
> > project...any other suggestions?
> >
> >
> >
> > "iliace" wrote:
> > > On Dec 11, 4:15 pm, James <Ja...@discussions.microsoft.com> wrote:
> > > > Anyone know if you can use the "record macro" function to record the creation
> > > > of a pivot table?

> >
> > > Absolutely. In fact, that's one of the best ways to figure out the
> > > PivotCache and PivotTable objects.- Hide quoted text -

> >
> > - Show quoted text -

>
>

 
Reply With Quote
 
iliace
Guest
Posts: n/a
 
      13th Dec 2007
I don't have 2003 at the office any more, but I'll post back once I
try it back home.

On Dec 13, 11:08 am, James <Ja...@discussions.microsoft.com> wrote:
> Ok...I was trying to record a macro of creating a pivot table using the
> wizard, and it was not working. If I create the blank pivot table, and then
> drag and drop fields from the field list, it will record now. But, I am still
> getting some bug errors, but I think it is because I have too many rows in my
> source data. there are 16,000 rows, and if I decrease the number of rows that
> the pivot table is based on to under 10,000, it works. Sounds right? There is
> a 10,000 row limit? Oh...and the new company I am working for is using Excel
> 2003.
>
> "iliace" wrote:
> > Can you post the macro? Also, what version of Excel are you using?

>
> > On Dec 12, 11:00 am, James <Ja...@discussions.microsoft.com> wrote:
> > > I am trying to record a macro that creates a pivot table, and I am getting an
> > > error...I get a "run time error 1004: AddFields method of PivotTable class
> > > failed". I have lowered my security settings, selected to trust access to VBA
> > > project...any other suggestions?

>
> > > "iliace" wrote:
> > > > On Dec 11, 4:15 pm, James <Ja...@discussions.microsoft.com> wrote:
> > > > > Anyone know if you can use the "record macro" function to record the creation
> > > > > of a pivot table?

>
> > > > Absolutely. In fact, that's one of the best ways to figure out the
> > > > PivotCache and PivotTable objects.- Hide quoted text -

>
> > > - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
record a macro to update pivot table =?Utf-8?B?bG91aXNjb3VydG5leQ==?= Microsoft Excel Misc 1 21st Jul 2007 04:50 AM
Record Macro to Create Pivot Table =?Utf-8?B?S2Vu?= Microsoft Excel Misc 1 25th Apr 2007 09:42 PM
How do you create your own auto format for a pivot table =?Utf-8?B?TWFybHlu?= Microsoft Excel Worksheet Functions 6 11th May 2006 01:36 PM
Record Pivot Table Macro =?Utf-8?B?Q29yZXk=?= Microsoft Excel Misc 2 11th Feb 2006 01:31 AM
Record Pivot table Macro BobG Microsoft Excel Programming 3 9th Feb 2006 04:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:01 PM.