+ Reply to Thread
Results 1 to 3 of 3

Creating New Workbooks from Multiple Worksheets (w/Pivot Tables)

  1. #1
    Registered User
    Join Date
    03-13-2012
    Location
    United States
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    19

    Creating New Workbooks from Multiple Worksheets (w/Pivot Tables)

    I found the following code from Ron de Bruin and have used it with good success until today when I needed to use it with Pivot Tables in Excel 2010. Here is the code from http://www.rondebruin.nl/copy6.htm:
    Please Login or Register  to view this content.
    When using this on a workbook with 30 sheets (all with a pivot table on them) the macro hangs up on this section:
    Please Login or Register  to view this content.
    In searching the internet, it seems the issue is with the Pivot Table and trying to copy/paste values. So I came across the following macro that is able to copy the Pivot Table as values, which works fine if I do the worksheets one at a time and save them. From http://www.contextures.com/excel-vba...te-format.html:
    Please Login or Register  to view this content.
    I was hoping to find a way to incorporate this macro into Ron de Bruin's macro through a Call argument.
    Please Login or Register  to view this content.
    Doing so works, but each subsequent worksheet overwrites the previous one when saving, and doesn't use the worksheet's name from the original workbook.

    Does anyone know of a macro that can accomplish this task, or can you provide any guidance on how to modify the two above macros to do the job? My VBA knowledge is very limited and I haven't been able to figure out where to begin with this one. Both of these macros are much more complex than what I would normally create myself.

    I've created a sample file with some fake names and information that may help you to visualize what I'm trying to do. By the end I'd like to have 4 workbooks named Penn State, Pitt, U Penn, Syracuse. The actual file has about 30 sheets instead of 4 and a lot more data.

    Thanks in advance for any help you can provide.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-13-2012
    Location
    United States
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    19

    Re: Creating New Workbooks from Multiple Worksheets (w/Pivot Tables)

    Any help on this? I'm at a complete loss of where to go from here.

  3. #3
    Registered User
    Join Date
    03-13-2012
    Location
    United States
    MS-Off Ver
    Office Professional Plus 2013
    Posts
    19

    Re: Creating New Workbooks from Multiple Worksheets (w/Pivot Tables)

    In the essence of disclosure, I have also posted this question at http://www.mrexcel.com/forum/showthread.php?t=621847

+ 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