+ Reply to Thread
Results 1 to 3 of 3

Speed up creating worksheets for all filters in pivot table

  1. #1
    Registered User
    Join Date
    08-17-2016
    Location
    Amsterdam
    MS-Off Ver
    2013
    Posts
    14

    Speed up creating worksheets for all filters in pivot table

    Hi members,

    I have a workbook for which i want to create new worksheets for every item in the filter selection.
    Since i want to modify the created worksheets and only keep the values and not the pivot itself, i created a code which seems to work, but is quite slowly.

    Is there a way how i can speed up this code?

    Please Login or Register  to view this content.
    I cannot seem to upload the file ....
    The problem is that the following code

    "For Each PI In Worksheets(MyWs).PivotTables(MyPIV).PivotFields(MyField).PivotItems
    PI.Visible = True

    For Each PI2 In Worksheets(MyWs).PivotTables(MyPIV).PivotFields(MyField).PivotItems
    If Not PI2.Name = PI.Name Then PI2.Visible = False
    Next PI2'"

    is comparing each item to each other (>500 options), whilst i am sure that all the filters available, would always have to be generated.
    Any suggestions?
    Last edited by hdinkie; 09-22-2016 at 06:17 AM.

  2. #2
    Registered User
    Join Date
    08-17-2016
    Location
    Amsterdam
    MS-Off Ver
    2013
    Posts
    14

    Re: Speed up creating worksheets for all filters in pivot table

    ps: where is the option for adding an attachment? can't seem to find it now i have posted the thread ...
    before posting there was an button, but that didn't seem to work for me

  3. #3
    Registered User
    Join Date
    08-17-2016
    Location
    Amsterdam
    MS-Off Ver
    2013
    Posts
    14

    Re: Speed up creating worksheets for all filters in pivot table

    has been reposted with attachment and been answered on the following thread: http://www.excelforum.com/showthread...t=#post4488514

+ 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. Replies: 1
    Last Post: 07-16-2015, 05:46 AM
  2. Creating filters on multiple worksheets
    By 01jenbad in forum Excel General
    Replies: 1
    Last Post: 08-28-2014, 05:42 PM
  3. Replies: 10
    Last Post: 01-08-2013, 04:03 PM
  4. Replies: 1
    Last Post: 08-31-2012, 09:52 PM
  5. Replies: 0
    Last Post: 05-28-2012, 02:43 AM
  6. Creating a pivot table from multiple worksheets in one workbook
    By kiran654 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2010, 07:25 PM
  7. [SOLVED] creating a pivot table w/ ranges from 2 worksheets
    By tl in forum Excel General
    Replies: 1
    Last Post: 08-20-2005, 03:05 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