One way is to, with the PT selected, invoke the PT Wizard from the PT
toolbar, click Back, and reenter your range.
A better way is to use a dynamic range as your PT source. For instance,
if your data is in Sheet1, columns A:F, then define a name using
Insert/Name/Define:
Name in workbook: MyTable
Refers to:
=OFFSET(Sheet1!$A$1,,,COUNTA(Sheet1!$A:$A),6)
Then, in creating the PT, use
=MyTable
as the source.
I was faced with the same issue on a regular basis [until I got the XL-
FM ODBC link to work
] and did something very similar to that
suggested above but a bit simpler.
1. Get the data into the spreadsheet
2. Leave a blank row at the bottom of the data and then write a piece
of text in col A in the row beyond this to mark what will be the end
of your data range. Why do this? well I used to find that that
sometimes I got confused and inserted the new data outside of the data
range. With a marker in the last row I always knew whether or not the
data had gone into the correct place.
3. Select the data range incl column headings and that last row
containing the text marker in col A.
4.In the cell reference box at the far left of the formula bar type in
a name for the data range like MyTable and press Enter (this avoids
the insert/name/define step indicated above )
5 Define your pivot table and just put MyTable in the range box. If
the presence of the marker interferes with the pivot table, right
click the first cell in the row you dont want in the pivot table and
select 'hide'
When you want to insert more data in the data range just insert rows
above that data marker and then refresh the pivot table
All roads lead to Rome, but there are many of them.....
james