#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Pivot table macro

I have recorded a macro which creates a pivot table, when the macro runs
there is a run time error, at in the in VBA code whic is as follows :

ActiveSheet.PivotTables("PivotTable3").AddFields RowFields:=Array( _
"Payment Type 2", "Data")

Ant help appreciated.

Thanks

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Pivot table macro

Hi Nicki

What error do you get?
It may be that PivotTable3 already exists.

--
Regards
Roger Govier

"nickd via OfficeKB.com" <u35935@uwe wrote in message
news:86f435902a5e9@uwe...
I have recorded a macro which creates a pivot table, when the macro runs
there is a run time error, at in the in VBA code whic is as follows :

ActiveSheet.PivotTables("PivotTable3").AddFields RowFields:=Array( _
"Payment Type 2", "Data")

Ant help appreciated.

Thanks

--
Message posted via http://www.officekb.com

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Pivot table macro

Thanks for having a look error is as follows :
run-time error '1004'
AddField method of pivot table class falied


Question 2

I have several worksheets in a workbook, and I would like to retrieve in one
worksheet all accounts with detials that begin with a 4, or an account number
which has 8 numeric characters which are included in the the several work
sheets.

I am a novice on excel but need to learn very quickly, if you have an example
that would be very helpful.

Thanks for your time

Roger Govier wrote:
Hi Nicki

What error do you get?
It may be that PivotTable3 already exists.

I have recorded a macro which creates a pivot table, when the macro runs
there is a run time error, at in the in VBA code whic is as follows :

[quoted text clipped - 5 lines]

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200807/1

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Pivot table macro

Hi Nicki

I can't quite understand what it is that you want.
If you want, you can email me the file direct, with some more detail on what
you are trying to achieve.

To send direct email to
roger at technology4u dot co dot uk
Change the at and dots to make valid email address.

--
Regards
Roger Govier

"nickd via OfficeKB.com" <u35935@uwe wrote in message
news:872e413513e95@uwe...
Thanks for having a look error is as follows :
run-time error '1004'
AddField method of pivot table class falied


Question 2

I have several worksheets in a workbook, and I would like to retrieve in
one
worksheet all accounts with detials that begin with a 4, or an account
number
which has 8 numeric characters which are included in the the several work
sheets.

I am a novice on excel but need to learn very quickly, if you have an
example
that would be very helpful.

Thanks for your time

Roger Govier wrote:
Hi Nicki

What error do you get?
It may be that PivotTable3 already exists.

I have recorded a macro which creates a pivot table, when the macro runs
there is a run time error, at in the in VBA code whic is as follows :

[quoted text clipped - 5 lines]

Thanks


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200807/1

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
pivot table macro skippy51 New Users to Excel 2 May 14th 08 01:06 PM
Pivot Table from Macro Dave Excel Discussion (Misc queries) 2 November 15th 07 05:00 PM
Is it possible to Macro a Pivot Table? jeannie v Excel Worksheet Functions 2 July 22nd 07 01:56 AM
Pivot Table Macro BCNU Excel Discussion (Misc queries) 0 November 14th 06 01:33 AM
MACRO FOR PIVOT TABLE anu Excel Discussion (Misc queries) 2 August 11th 06 05:07 PM


All times are GMT +1. The time now is 08:44 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"