Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I have a workbook that has data on one sheet that is used to feed a PivotTable on another sheet. I used a dynamic named range to allow the PivotTable range to grow/shrink without including blank rows. I also have macros coded to automatically refresh the PivotTable every time the sheet that it's on is activated. This setup works beautifully until all of the source data is deleted (i.e. the only thing left on the sheet with the data is the row with the column headings). If all of the source data is deleted, I receive the following message when the PivotTable sheet is activated: Run-time error '1004': This command requires at least two rows of source data. You cannot use the command on a selection in only one row. ...." I understand what the message means (a PivotTable requires more than one row of data) but can anyone recommend an elegant way to handle this situation? As the spreadsheet won't be used by me, I'd like the solution to allow users to enter and remove data freely. Any assistance would be greatly appreciated. Thanks! Kris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
what types of source data can't be grouped in pivottable | Excel Discussion (Misc queries) | |||
Dynamic PivotTable Data Source | Excel Discussion (Misc queries) | |||
Pivottable - use same source data, and group data differently | Excel Discussion (Misc queries) | |||
Select different source data for a PivotTable | Excel Worksheet Functions | |||
How to source data from multiple worksheets in a PivotTable? | Excel Programming |