Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Pivot Tables - Refreshing with data??.....

Is it possible to do either of the following in either VBA or alternatively
through excel automatically?:

1) Automatically make a pivot table recognise when a row has been added
directly underneath the existing data and extend the selection to include any
additional rows

2) Have a macro automatically create a pivot table and automatically select
the range of data (which will be different all the time), or alternatively
present a dialog box that justs asks the user to select the range to make the
pivot table on and then create the rest of the pivot table automatically.

Appreciate any help that anyone can offer on this as I'm completely lost on
this.

Cheers, Al Mackay )

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pivot Tables - Refreshing with data??.....

Insert=Name=Define

Name: Database
RefersTo: =Offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),10)

the actual pivot table won't update until you actually do a refresh.



then when you set up your pivot table set the source to be Database

Turn on the macro recorder to get the code to create a pivotTable.

to get the range dynamically, assume the data table starts in A1

set rng = Worksheets("Sheet1").Range("A1").CurrentRegion

--
Regards,
Tom Ogilvy

"MrAlMackay" wrote in message
...
Is it possible to do either of the following in either VBA or

alternatively
through excel automatically?:

1) Automatically make a pivot table recognise when a row has been added
directly underneath the existing data and extend the selection to include

any
additional rows

2) Have a macro automatically create a pivot table and automatically

select
the range of data (which will be different all the time), or alternatively
present a dialog box that justs asks the user to select the range to make

the
pivot table on and then create the rest of the pivot table automatically.

Appreciate any help that anyone can offer on this as I'm completely lost

on
this.

Cheers, Al Mackay )



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Pivot Tables - Refreshing with data??.....

Tom

As always thanks so much for your help!

Cheers, Al.
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
Refreshing Pivot Tables hnyb1 Excel Discussion (Misc queries) 1 September 13th 07 01:21 PM
Loosing formatting when refreshing data in Pivot tables Excel2003 BAS Charts and Charting in Excel 0 August 29th 07 11:04 AM
When refreshing pivot tables my pivot table chart type changes hannah220507 Excel Discussion (Misc queries) 1 May 22nd 07 02:57 PM
Refreshing Pivot Tables Lisa Excel Worksheet Functions 2 May 17th 07 04:19 PM
refreshing pivot tables with a macro Lou Sanderson Excel Discussion (Misc queries) 10 October 17th 06 07:57 PM


All times are GMT +1. The time now is 11:42 AM.

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"