+ Reply to Thread
Results 1 to 1 of 1

Error w/ Macro for PivotTable

Hybrid View

kbspence Error w/ Macro for PivotTable 08-28-2012, 10:37 AM
  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Error w/ Macro for PivotTable

    FinalRow Cells(Rows.Count, 1).End(xlUp).Row
    DataSheet ActiveSheet.Name
    Sheets.Add
    NewSheet ActiveSheet.Name
    ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
            DataSheet & "R1C1:R" & FinalRow &).CreatePivotTable TableDestination:= NewSheet &, TableName _
            :="PivotTable1", DefaultVersion:=xlPivotTableVersion10
        ActiveSheet.PivotTableWizard TableDestination:=ActiveSheet.Cells(3, 1)
    Compile error:
    Sub or Function not defined

    Please note, I'm new to this forum. I'd greatly appreciate any help.
    Last edited by kbspence; 08-28-2012 at 11:13 AM.

+ 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