+ Reply to Thread
Results 1 to 3 of 3

VBA Pivot Table Update Run Time Error

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    71

    VBA Pivot Table Update Run Time Error

    Hello,
    I am creating the report that is updated daily and need assistance with dates in Pivot Tables within the report.

    I have one sheet within the report that is for service call aging and contains two pivot tables on it for one and seven days. Our reporting system runs one day behind, so the formula needs to actually be for 2 and 8 days.

    • One for any calls over 1 day. =Today()-2
    • One for any calls over 7 days. =Today()-7
    Since these are within a Pivot Table, I have tried several variations to ensure the Pivot Table reflects all the data minus 1 day and 7 days, but keep getting an error. The the error and VBA code are reflected below.
    1. ERROR: Run-time error '1004: Unable to get the PivotItems property of the PivotField class.
    2. VBA:

    Please Login or Register  to view this content.
    Can any of you please help me?
    Last edited by DoodlesMama; 10-03-2013 at 03:14 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: VBA Pivot Table Update Run Time Error

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    71

    Re: VBA Pivot Table Update Run Time Error

    Sorry, I missed that portion. I'll correct now.

+ 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. [SOLVED] how can i secuire Sheet Same time Update the Pivot Table
    By Michael H.M.Mikhail in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  2. how can i secuire Sheet Same time Update the Pivot Table
    By Michael H.M.Mikhail in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. [SOLVED] how can i secuire Sheet Same time Update the Pivot Table
    By Michael H.M.Mikhail in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. [SOLVED] how can i secuire Sheet Same time Update the Pivot Table
    By Michael H.M.Mikhail in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  5. how can i secuire Sheet Same time Update the Pivot Table
    By Michael H.M.Mikhail in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

Tags for this Thread

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