+ Reply to Thread
Results 1 to 3 of 3

VBA Recording wrong... whats the deal?

  1. #1
    Registered User
    Join Date
    06-16-2005
    Posts
    34

    VBA Recording wrong... whats the deal?

    I am trying to record a the creation of a pivot table and appropriate fields, but the recorder is not capturing it right because an error is occuring.

    Error:
    RTE: 1004
    Unable to get the PivotFields property of the pivottable class

    Section (ERROR at face):
    Sheets.Add
    ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
    "'Multiple Item BOMs'!C1:C13").CreatePivotTable TableDestination:=Range("A3") _
    , TableName:="PivotTable6"
    ActiveSheet.PivotTables("PivotTable6").SmallGrid = False
    With ActiveSheet.PivotTables("PivotTable6").PivotFields("ASSY")
    .Orientation = xlColumnField
    .Position = 1
    End With

    The only thing I could maybe think is that the table's name is being called improperly. Sorry if this is dumb... I'm still quite new to VBA. Thanks!

  2. #2
    Registered User
    Join Date
    06-16-2005
    Posts
    34
    bump bump bump

  3. #3
    Registered User
    Join Date
    08-24-2012
    Location
    Chicago
    MS-Off Ver
    Excel 20013
    Posts
    55

    Re: VBA Recording wrong... whats the deal?

    I'm a beginner but I have been using this. You will need to format it yourself when it's done.

    Please Login or Register  to view this content.

+ Reply to Thread

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