Results 1 to 7 of 7

Yesterday macro worked, today it doesn't?

Threaded View

  1. #1
    Registered User
    Join Date
    11-06-2008
    Location
    Illinois
    Posts
    63

    Angry Yesterday macro worked, today it doesn't?

    I use a macro that automatically generates a pivot table, re-formats the data, and then makes sure there are no blanks and that the DATA area of the pivot table is set to SUM OF and not COUNT OF.

    It was working just fine yesterday but today it is giving me the following error and is highlighting this section of my code:

        With ActiveSheet.PivotTables("PivotTable1").PivotFields("Engagement Owner") 'removes any blanks within Engagement Owner field
        .PivotItems("(blank)").Visible = False
        End With
    Run-Time Error '1004': Unable to get the PivotItems property of the PivotField class

    Yesterday this macro worked great. Today it's giving me that error. What gives?
    Last edited by Nickster64; 12-18-2008 at 12:33 PM.

Thread Information

Users Browsing this Thread

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

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