+ Reply to Thread
Results 1 to 5 of 5

Adding Pivot through the VBA

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    Dublin
    MS-Off Ver
    Excel 2010
    Posts
    18

    Adding Pivot through the VBA

    Hello, I recorded Macro to add Pivot Table.

    For some reason recorded code does not work

    Please Login or Register  to view this content.
    Can some one help me to modify this part of code?

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Adding Pivot through the VBA

    What error do you get? On which row?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-05-2013
    Location
    Dublin
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Adding Pivot through the VBA

    Please Login or Register  to view this content.
    this is one row

    I got run time error 5

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Adding Pivot through the VBA

    Try changing the destination sheet name from Pivot Table to Pivot_Table.

    Also if you are using excel 2007, then change this from xlPivotTableVersion14 to xlPivotTableVersion12.

  5. #5
    Registered User
    Join Date
    03-05-2013
    Location
    Dublin
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Adding Pivot through the VBA

    Thanks name change helped.

+ 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