Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Help with Pivote Table

I have just recorded a macro to create a pivote table. The problem is,
everytime i run the macro a new worksheet is created. What do I have
to change in the macro code to direct the pivote table to be created
in an exiting worksheet (pre-named) instead of setting up new
worksheet everytime I activated the macro button.

Many thanks,
Ola.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Help with Pivote Table

CODE (substitute appropriate range, sheet name, workbookname, PivotTableName):

ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatab ase, SourceData:= _
"sheet1!R1C1:R10C10").CreatePivotTable TableDestination:= _
"[book1.xls]SheetName!R1C1", TableName:="PivotTableName", _
DefaultVersion:=xlPivotTableVersion10


-or-

while recording the macro:
in Step 3 of 3 in the Pivot Table wizard, select "Existing worksheet" and
choose where you want the pivot table to go

--
Rich


"Ola2B" wrote:

I have just recorded a macro to create a pivote table. The problem is,
everytime i run the macro a new worksheet is created. What do I have
to change in the macro code to direct the pivote table to be created
in an exiting worksheet (pre-named) instead of setting up new
worksheet everytime I activated the macro button.

Many thanks,
Ola.


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
multiple pivote charts in one sheet squared chart area[_2_] Excel Discussion (Misc queries) 0 June 13th 07 01:09 PM
entry removed from source table remains in pivot table pull down EL in Melb. Excel Worksheet Functions 1 September 6th 06 07:59 AM
Is it possible to import external data into existing pivote table helen shuchman Excel Discussion (Misc queries) 0 March 2nd 06 04:00 PM
Excel Pivot Table Plugin? (crosstab to data table) HoMoon115 Excel Discussion (Misc queries) 0 February 22nd 06 08:20 PM
PIVOT TABLE - Summary Table into a Databasae Table. sansk_23 Excel Worksheet Functions 4 May 9th 05 07:45 AM


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