Results 1 to 7 of 7

Problem: Create multiple pivot tables from single source sheet

Threaded View

maboho93 Problem: Create multiple... 02-23-2018, 04:57 AM
sktneer Re: Problem: Create multiple... 02-23-2018, 05:10 AM
xlnitwit Re: Problem: Create multiple... 02-23-2018, 05:10 AM
maboho93 Re: Problem: Create multiple... 02-23-2018, 05:45 AM
sktneer Re: Problem: Create multiple... 02-23-2018, 06:23 AM
xlnitwit Re: Problem: Create multiple... 02-23-2018, 05:52 AM
sandy666 Re: Problem: Create multiple... 02-23-2018, 05:55 AM
  1. #1
    Registered User
    Join Date
    01-02-2018
    Location
    Oslo, Norway
    MS-Off Ver
    2010/2017
    Posts
    20

    Problem: Create multiple pivot tables from single source sheet

    Hi,

    I have one source sheet with data and I want to create multiple pivot tables based on it with varying filters.

    This normally works fine, but when trying to create the same pivot table twice it causes this error: "Run-time error '5': Invalid procedure or argument"

    The debugger marks this line: Set pvt = Worksheets(SheetName).PivotTables.Add(pvtCache, Range(StartPvt), PivotName)

    I have tried deleting the worksheet containing the pivot table and then constructing it again, but it doesn't seem to help.

    Do you have some suggestion why this error is caused and how to prevent it?
    Last edited by maboho93; 03-01-2018 at 09:39 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to create Pivot Tables from data source of two Sheets
    By sameer79 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2018, 02:50 PM
  2. Multiple Pivot Tables with Data model - Source Problem
    By siva1612 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2016, 12:27 AM
  3. [SOLVED] create new pivot tables from same source in same tab
    By ammartino44 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-10-2014, 05:56 PM
  4. Several Pivot Tables from single source- design aid
    By eqlizr in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-11-2014, 09:28 AM
  5. Pivot Tables using multiple tables as a source
    By Chrisb1985 in forum Excel Charting & Pivots
    Replies: 26
    Last Post: 05-09-2014, 10:50 AM
  6. [SOLVED] Multiple Pivot Tables - Single table of source data
    By some_evil in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-09-2014, 11:56 PM
  7. Replies: 3
    Last Post: 02-27-2012, 08:03 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