Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default 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
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 to launch Macro Darin Kramer Excel Programming 2 August 25th 05 06:41 PM
Pivot table to launch Macro Darin Kramer Excel Programming 3 August 24th 05 03:55 PM
Macro launch - Button vs Manual launch , has different results. Wayne Excel Programming 4 February 23rd 05 11:33 AM
auto-launch a MACRO? d-cubed Excel Programming 4 December 22nd 03 10:10 PM
Launch Macro in Access via Macro running in Excel??? dgrant Excel Programming 1 September 24th 03 01:38 PM


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