Pivot Table name is not valid


I am getting the above error and I really don't understand what is the reason. I've done some research and it talks about my first row of source being empty! But my source is clean and no rows are empty!

Any help is much appreciated!
LVL 13
Who is Participating?
Rory ArchibaldConnect With a Mentor Commented:
The source for your pivot is columns F:L on the GL summary sheet, which is why you get the error (H:L are blank).
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:

Do you have valid names in all the column headings of the data source? Have you recently changed the headings?

Excel would not let you create a pivot table without valid column headings. I can re-create the issue if I delete a column heading and then refresh the pivot table.

Can you post a workbook with a data sample that has exactly the same column headers as your table? Replace confidential data with dummy data. A few rows of data will be sufficient.

cheers, teylyn
Shanan212Author Commented:
File attached!

The same error came up even when I recreated the pivot!
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Connect With a Mentor Microsoft MVP ExcelCommented:

I can see the error when I try to refresh the existing pivot table.

But I can create a new pivot table from the source data just fine. It could be that the pivot cache has become corrupt.

Attached is the file with the re-created pivot table. Is that one working for you?

cheers, teylyn
Shanan212Author Commented:
It works that way. But when I try to refresh it via a macro, then it gives the msg

"The pivot table name is not valid"

Then right after that, when I try a manual refresh, it gives the same error as post 27340090

What could be the reason for this? All the macro was trying to do this is

   ' For Each pt In ActiveSheet.PivotTables
   '     pt.RefreshTable
  '  Next pt

Open in new window

The middle 3 lines are disabled

Any feedback is appreciated
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Shanan212Author Commented:
Yup :)

I found this error as well but now it developed into some other problem. The reason source data is changing is because the source table is being deleted and re-created. Everytime it does that, the source changes!
Shanan212Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.