Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Update PivotTable Range with a button

Hi,

I have a pivottable which it's range is growing constantly. since I don't
know of an automatic way to increase the range of the table, I thaught of
building some kind of a button in VBA to update the range and relying on the
last row that has data.
I usually ad code to my questions, but not this time. I have no idea how to
start it.

I will be happy for help.

Saariko
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Update PivotTable Range with a button

Make the source of you pivottable a defined name

Insert=Name=Define

Name: Database
Refersto:
=offset(Data1!$A$1,0,0,CountA(Data1!$A:$A),10)
Click ADD


change the 10 to the number of columns in your data

Make this defined name the source for your pivot table.

--
Regards,
Tom Ogilvy

"Saariko" wrote in message
...
Hi,

I have a pivottable which it's range is growing constantly. since I don't
know of an automatic way to increase the range of the table, I thaught of
building some kind of a button in VBA to update the range and relying on

the
last row that has data.
I usually ad code to my questions, but not this time. I have no idea how

to
start it.

I will be happy for help.

Saariko



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Update PivotTable Range with a button

Tom:

I often have the same issue as Saariko (original post) and I usually set the
source to an arbitrarily large range to ensure the data never extends beyond
- it seems to work fine. Other than elegance, are there any reasons why
defining the source with a named range as you show is better than simply
defining a very large range?

Thanks for your time!



"Tom Ogilvy" wrote:

Make the source of you pivottable a defined name

Insert=Name=Define

Name: Database
Refersto:
=offset(Data1!$A$1,0,0,CountA(Data1!$A:$A),10)
Click ADD


change the 10 to the number of columns in your data

Make this defined name the source for your pivot table.

--
Regards,
Tom Ogilvy

"Saariko" wrote in message
...
Hi,

I have a pivottable which it's range is growing constantly. since I don't
know of an automatic way to increase the range of the table, I thaught of
building some kind of a button in VBA to update the range and relying on

the
last row that has data.
I usually ad code to my questions, but not this time. I have no idea how

to
start it.

I will be happy for help.

Saariko




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
Pivottable update Excel 2007 Mikmac Excel Discussion (Misc queries) 0 August 19th 09 02:17 PM
PivotTable Field Value List Update Hutch Excel Discussion (Misc queries) 0 August 1st 08 04:46 AM
Update PivotTable [email protected] Excel Worksheet Functions 4 September 18th 06 10:23 PM
Dynamic parameterized PivotTable update? Nick Keller Excel Discussion (Misc queries) 0 February 24th 06 11:02 PM
Update Chart in Pivottable Tobias[_2_] Excel Programming 1 April 27th 04 12:56 PM


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