Solved

Pivot Table name is not valid

Posted on 2011-09-26
8
331 Views
Last Modified: 2012-05-12
screencap
Hi,

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!
0
Comment
Question by:Shanan212
  • 4
  • 3
8 Comments
 
LVL 50

Expert Comment

by:teylyn
ID: 36690011
Hello,

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
0
 
LVL 13

Author Comment

by:Shanan212
ID: 36694803
File attached!

The same error came up even when I recreated the pivot!
GL-Summary---Master-File---Copy.xls
0
 
LVL 50

Assisted Solution

by:teylyn
teylyn earned 250 total points
ID: 36698469
Hello,

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
GL-Summary---Master-File---Copy1.xls
0
 
LVL 13

Author Comment

by:Shanan212
ID: 36702527
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

    Worksheets("Pivotss").Activate
   ' For Each pt In ActiveSheet.PivotTables
   '     pt.RefreshTable
  '  Next pt
   ActiveSheet.PivotTables("PivotTable1").RefreshTable

Open in new window



The middle 3 lines are disabled

Any feedback is appreciated
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
ID: 36707813
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).
0
 
LVL 50

Expert Comment

by:teylyn
ID: 36708433
<head-desk>
0
 
LVL 13

Author Comment

by:Shanan212
ID: 36709530
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!
0
 
LVL 13

Author Closing Comment

by:Shanan212
ID: 36709539
Thanks!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now