Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default pivot table questions


1)
Sub test()
Dim pt As PivotTable
Dim txt As String

txt = "6"

Set pt = Sheet2.PivotTables(1)
pt.SourceData = "Sheet2!R1C2:R" & txt & "C4"
pt.RefreshTable
End Sub


2)
pt.TableRange2.Clear



"Gary Keramidas" wrote:

1. any way to use the A1 notation instead of r1c1?
i'd rather use "b3:g68" than this:
"Sheet1!R3C2:R" & Lastrow & "C7") , but can't seem to get it to work.

2. it doesn't appear you can run code to overwrite a pivot table. what do
experienced programmers do? i can delete the whole sheet before i run the
code again, but what's the best practice? the number of lines in the other
sheet will constantly change, so the range needs to be updated.
or
3. is there way to just update the range of data with performing the
complete pivot table creation again?

--


Gary




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 questions Francesco Excel Discussion (Misc queries) 1 December 10th 08 01:55 AM
Pivot Table Questions Dana B. Excel Discussion (Misc queries) 0 November 6th 08 04:13 PM
Pivot Table Questions andrewc Excel Discussion (Misc queries) 2 July 3rd 06 03:59 PM
pivot table questions JR Excel Worksheet Functions 2 February 23rd 06 05:40 PM
Pivot Table Questions William Elerding Excel Discussion (Misc queries) 3 October 15th 05 08:24 PM


All times are GMT +1. The time now is 10:59 PM.

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

About Us

"It's about Microsoft Excel"