Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Launch pivot table using Macro
Help! I created a simple macro to launch a pivot table covering dat with fields as follows: Date Units Amount I created a pivot table manually and the results was correct. Created macro with the same instructions, tested it and it worked. However late with a longer list of data the macro did not provide a correct answer a compared to a manually created pivot table. Any clue as to the problem? Does a pivot table created through a macr 'retain' the data range and therefore gives an incorrect result if th data range is longer than the original -- Tyrone Lope ----------------------------------------------------------------------- Tyrone Lopez's Profile: http://www.excelforum.com/member.php...fo&userid=2219 View this thread: http://www.excelforum.com/showthread.php?threadid=47775 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Launch pivot table using Macro
In your macro, you could use a dynamic range as the pivot table source,
and it would automatically expand to include new data. There are instructions he http://www.contextures.com/xlPivot01.html Tyrone Lopez wrote: Help! I created a simple macro to launch a pivot table covering data with fields as follows: Date Units Amount I created a pivot table manually and the results was correct. Created a macro with the same instructions, tested it and it worked. However later with a longer list of data the macro did not provide a correct answer as compared to a manually created pivot table. Any clue as to the problem? Does a pivot table created through a macro 'retain' the data range and therefore gives an incorrect result if the data range is longer than the original? -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pivot table to launch Macro | Excel Programming | |||
Pivot table to launch Macro | Excel Programming | |||
Macro launch - Button vs Manual launch , has different results. | Excel Programming | |||
auto-launch a MACRO? | Excel Programming | |||
Launch Macro in Access via Macro running in Excel??? | Excel Programming |