Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default 2007 / 2003 Pivottable Macro

Hi,
I'm trying to write a macro that creates a pivot table in 2007 that is
compatable with 2003. The reason is that i'm using 2007 and most everyone
else is still using 2003. below is the code from a macro record for creating
a pivottable.

ActiveWorkbook.PivotCaches.Create(SourceType:=xlDa tabase, SourceData:= _
"Sheet1!R2C1:R8C9", Version:=xlPivotTableVersion12).CreatePivotTable _
TableDestination:="Sheet4!R3C1", TableName:="PivotTable1",
DefaultVersion _
:=xlPivotTableVersion12

now i believe that i need to use Version10 instead of 12 inorder for it to
work in 2003. the problem is that when i run the macro it gives me an error.
Any Ideas.
Thanks,
Josh
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
2003 to 2007 macro problem Russ Morgan Excel Worksheet Functions 3 January 2nd 09 07:26 PM
macro between 2003 and 2007 Debbie Horner Excel Discussion (Misc queries) 1 October 15th 08 03:16 PM
Macro 2003 vs 2007 Ron Excel Worksheet Functions 1 September 29th 08 05:40 AM
Excel 2007/2003 Pivottable compatibility Michael Anderson Excel Discussion (Misc queries) 0 February 21st 08 02:55 AM
Place an IF Statement into a Macro 2007 and 2003 Lisa Excel Discussion (Misc queries) 5 January 4th 08 05:30 PM


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