Closed Thread
Results 1 to 2 of 2

Macro script to create pivot tables

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

    Macro script to create pivot tables

    Hi,

    I can't figure out the bug in this script, any ideas? This is the part it highlighted, I'll post more if necessary

    ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
    "Log!R1C3:R17C19", Version:=xlPivotTableVersion14).CreatePivotTable _
    TableDestination:="Feature Analysis!R1C1", TableName:="PivotTable7", _
    DefaultVersion:=xlPivotTableVersion14

    I'm just trying to create pivot tables following data that's in the same workbook.

    Thank you!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro script to create pivot tables

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    Also:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 07-25-2013, 05:24 PM
  2. [SOLVED] Macro to Create Pivot Tables
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-04-2013, 06:38 PM
  3. Macro to create common cache for groups of pivot tables
    By robhumbug in forum Excel General
    Replies: 0
    Last Post: 12-21-2010, 07:15 PM
  4. RE: Problem with a recorded macro to create two pivot tables from same
    By rjamison in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 08:05 PM
  5. Problem with a recorded macro to create two pivot tables from same data
    By Pete Straman via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2005, 01: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