Results 1 to 3 of 3

Creating pivot tables with macro VBA

Threaded View

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Belfast, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    18

    Creating pivot tables with macro VBA

    Hi,

    Could someone have a look at the script and tell me the issue, I'm trying to create a pivot table with a macro but it's telling me to debug here:

    Sheets("Feature Analysis").Select
        Range("A1").Select
        ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
            "Log!R1C3:R17C19", Version:=xlPivotTableVersion14).CreatePivotTable _
            TableDestination:="Feature Analysis!R1C1", TableName:="PivotTable7", _
            DefaultVersion:=xlPivotTableVersion14    
    Sheets("Feature Analysis").Select
        Cells(1, 1).Select
        ActiveSheet.Shapes.AddChart.Select
        ActiveChart.ChartType = xlColumnClustered
    Thank you
    Last edited by JBeaucaire; 09-05-2013 at 01:20 PM. Reason: Added CODE tags, as per Forum Rules. Take a moment to read the Forum Rules in the menu bar above. Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro for creating two pivot tables
    By aarodn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2013, 02:56 PM
  2. Creating two pivot tables on same sheet - Optimize recorded macro code
    By johnny_tc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 11:59 AM
  3. Creating Pivot Tables with macro Problem
    By Linda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2005, 06:17 PM
  4. Creating Pivot Tables inside a Macro
    By farrell77 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2005, 06:06 PM

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