PC Review


Reply
Thread Tools Rate Thread

do macros not like pivot tables?

 
 
=?Utf-8?B?Y2hpbGRvZnRoZTE5ODBz?=
Guest
Posts: n/a
 
      30th May 2007
Hello:

I am dumping data from an accounting application to a saved Excel
spreadsheet that contains a macro. The macro creates a pivot table out of
the data that is dumped to Excel.

I have been getting all kinds of errors, and I do not know how to eliminate
them!

One error that I got upon exporting the data to the spreadsheet containing
the macro was "cannot change this part of the pivot table report". When I
open the spreadsheet, data is "everywhere" and in a jumble.

I simply want the data dumped to Excel to be "reconfigured"/"redisplayed" as
a pivot table, and I need the macro to accomplish this.

Can macros not create pivot tables? I know that you can record a macro to
create a pivot table, because I have done that. But, do macros not like
being replayed if they have to create a pivot table?

It's all hard to explain. I wish I could.

The first time I had issues was when I simply recorded, at the beginning of
the macro, to remove columns from the spreadsheet that are not needed in the
pivot table. This was done to eliminate the first error I got that said that
"the pivot table field name in invalid". At first, I thought that this error
was caused from renaming columns as part of the macro. So, I stopped having
the macro rename columns.

But, no matter what I tried, I ended up ultimately with the error that I
mentioned at the beginnong of this case.

Help!

Thanks!

childofthe1980s
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      31st May 2007
There was a major change in how Pivot tables are dealt with between the
XL2002 and 2003 version (correct ?), so you should check which version(s)
you intend to support.
VBA can work with them, but you of course to use the correct code and there
are limitations with Pivot tables.

Debra Dalgleish has done a lot in this area. Check out the "P"s in:
http://www.contextures.com/tiptech.html

NickHK

"childofthe1980s" <(E-Mail Removed)> wrote in
message news:89776D2B-ECAA-4F8C-8AD4-(E-Mail Removed)...
> Hello:
>
> I am dumping data from an accounting application to a saved Excel
> spreadsheet that contains a macro. The macro creates a pivot table out of
> the data that is dumped to Excel.
>
> I have been getting all kinds of errors, and I do not know how to

eliminate
> them!
>
> One error that I got upon exporting the data to the spreadsheet containing
> the macro was "cannot change this part of the pivot table report". When I
> open the spreadsheet, data is "everywhere" and in a jumble.
>
> I simply want the data dumped to Excel to be "reconfigured"/"redisplayed"

as
> a pivot table, and I need the macro to accomplish this.
>
> Can macros not create pivot tables? I know that you can record a macro to
> create a pivot table, because I have done that. But, do macros not like
> being replayed if they have to create a pivot table?
>
> It's all hard to explain. I wish I could.
>
> The first time I had issues was when I simply recorded, at the beginning

of
> the macro, to remove columns from the spreadsheet that are not needed in

the
> pivot table. This was done to eliminate the first error I got that said

that
> "the pivot table field name in invalid". At first, I thought that this

error
> was caused from renaming columns as part of the macro. So, I stopped

having
> the macro rename columns.
>
> But, no matter what I tried, I ended up ultimately with the error that I
> mentioned at the beginnong of this case.
>
> Help!
>
> Thanks!
>
> childofthe1980s



 
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
Move some sheets to a new workbook, without macros, and withoutbreaking link btwn Pivot Tables and Pivot Charts deltaquattro Microsoft Excel Programming 0 14th Jun 2011 08:53 AM
VBA, Macros and Pivot Tables Alberta Rose Microsoft Excel Programming 1 18th Aug 2009 11:27 PM
Pivot Tables and Macros Niceaction Microsoft Excel Programming 2 13th Mar 2008 05:07 PM
Pivot tables and macros =?Utf-8?B?TWlrZQ==?= Microsoft Excel Misc 1 9th Jan 2006 04:53 PM
macros and pivot tables... help please! white_rhino Microsoft Excel Programming 3 22nd Sep 2004 03:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:40 AM.