+ Reply to Thread
Results 1 to 2 of 2

Pivot Table error

  1. #1
    Registered User
    Join Date
    07-06-2005
    Posts
    15

    Pivot Table error

    I was wondering if any body can help me the below code:

    ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
    "Data!R" & rowDataHead & "C1:R" & rLast & "c" & cLast).CreatePivotTable TableDestination:=Sheets(TabPivotData).Range("A1"), _
    TableName:="PivotData", DefaultVersion:=xlPivotTableVersion10

    When I changed my data sheet from 37 Columns to 21 Columns and run the same pivot data, it highlighted the above code…I tried to put back my original data (37 columns’) and it works fine..

    Thanks in advance.

    Jimmy

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Pivot Table error

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

+ 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