+ Reply to Thread
Results 1 to 3 of 3

Run-time Error '1004' Pivotfield name is not valid

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    30

    Run-time Error '1004' Pivotfield name is not valid

    Hello everybody,

    I'm quiet but not really a beginner in VBA and today i went on an error which it seems, i can t solve alone. So i'm asking your help there. I'm doing a project consisting in "variance" analysis on several excel tables and everything worked fine till i get to the end but today, i just update the different tables and now get this error 1004 saying :

    "Run-time error '1004': The Pivot Table field name is not valid. To create a Pivot Table report, you must use data that is organized as a list with labeled columns. If you are changing the name of the Pivot Table field, you must type a new name for the field."

    As in my different tables I don t see any difference on the first row and not any blank i wonder from where it could be coming.

    Here a part of my code may be someone will see what is wrong here. (It worked fine till today!)

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    Please Login or Register  to view this content.
    The error occurs on the last line.

    Please someone help me!
    Last edited by polooop; 02-19-2014 at 04:46 AM. Reason: code tags, Solved

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Run-time Error '1004' Pivotfield name is not valid

    Have you checked the field names in the raw data to see if they are suitable for a pivot field name?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    02-18-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Run-time Error '1004' Pivotfield name is not valid

    Thank you so much Norie i've now found what was going on. My PivotTable was created with a field that was included in the raw datas but still not created at this point of the program (created by the next module). You helped me a lot with your hint thanks again! I was searching elsewhere for the error and i could have been still searching without your help.

    Ps: Sorry for code tags I had written this post at the end of my workday so I tried to be fast but next time i'll put em in!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA problem with Print Range code run-time error 1004 text not valid reference
    By Jeep56 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-14-2013, 03:38 PM
  2. Need help fixing macros due to Run-Time error 1004 Sort Reference is Not Valid
    By travisg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2013, 12:13 AM
  3. runtime 1004 error 'Unable to get the Pivotitems property of the Pivotfield class'
    By DavidBW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2012, 10:36 AM
  4. Run time error 1004 Reference is not valid on GoalSeek
    By Ted Heaslip in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2009, 09:28 AM
  5. pivot table refresh - error 1004 - reference is not valid
    By jrussell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2008, 05:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1