LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Assign a macro to create a pivot table


I am currently creating a macro from a data worksheet but I am receiving
an error.
:(

Initially, I just recorded the macro however when I am running it, i am
receiving an addfields method of Pivot Table Class failed.

ActiveSheet.PivotTables("PivotTable4").AddFields RowFields:="Level 3",
_
ColumnFields:="Date"

this is code that was having an error and I am not sure what was wrong
with it?
Can someone forward me a sample of the macro code to resolve this?

Alib


--
acsugguiyao
------------------------------------------------------------------------
acsugguiyao's Profile: http://www.excelforum.com/member.php...o&userid=24519
View this thread: http://www.excelforum.com/showthread...hreadid=381168

 
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
Record Macro to Create Pivot Table Ken Excel Discussion (Misc queries) 1 April 25th 07 09:42 PM
Can I run a macro to create a pivot table? Eqa Excel Discussion (Misc queries) 2 April 8th 07 06:16 AM
Error when runing macro to create pivot table Bruno[_3_] Excel Programming 0 August 3rd 04 06:47 PM
Macro to create pivot table/ chart Saint Excel Programming 2 July 6th 04 08:29 PM
Is it possible to assign a macro to a pivot table? James Sherman Excel Programming 0 July 22nd 03 12:24 AM


All times are GMT +1. The time now is 09:30 PM.

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

About Us

"It's about Microsoft Excel"