+ Reply to Thread
Results 1 to 3 of 3

Create pivot table based on array in memory

  1. #1
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Question Create pivot table based on array in memory

    Hi guys,

    I've got an auto-updated CSV file on a server, that I want to pull into an array in memory via a macro.
    That seems straightforward enough, but then when I have the array in memory, I'd like to create a pivot table in my worksheet based on that memory array.

    Is this possible? If so, does anyone have any pointers on how to go about this?

    Many thanks in advance!

    Jasper

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Create pivot table based on array in memory

    anyone?
    I can't understand why the following just doesn't work...

    Please Login or Register  to view this content.
    Last edited by JasperD; 01-22-2015 at 10:29 AM.

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Create pivot table based on array in memory

    SourceData must be a range if type is xlDatabase. You could extract the data into a recordset using ADO and then assign that to the pivot cache, but you can't use an array.
    Remember what the dormouse said
    Feed your head

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create sheets based on pivot table
    By lonleysoul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2015, 06:47 AM
  2. VBA To create Text based Pivot Table
    By genichigo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2012, 10:28 AM
  3. Memory Needed for Pivot Table
    By keithgoldner in forum Excel General
    Replies: 4
    Last Post: 11-28-2011, 09:42 PM
  4. [SOLVED] not enough memory for pivot table in excel
    By Hshah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2006, 02:20 PM
  5. [SOLVED] create an array with unique items IN MEMORY
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2005, 10:05 AM

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