+ Reply to Thread
Results 1 to 10 of 10

2003 macro to output several files thru filtering Pivot Table

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    boston, ma
    MS-Off Ver
    Excel 2003
    Posts
    6

    Post 2003 macro to output several files thru filtering Pivot Table

    I need help to use a pivot table to create multiple output files!

    I have read several forums and posts to figure this out and have had no luck finding a loop statement that would suit my needs, So I am turning to this forum for desperate help!

    Since I could not find a suitable loop script to work (nor could I write one) I went thru and recorded a macro that does what I needed it to do for the first vendor, But I need it to loop for the other 68 vendors!!



    Please Login or Register  to view this content.
    Last edited by tdbaileyco; 02-21-2013 at 10:32 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: 2003 macro to output several files thru filtering Pivot Table

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 02-19-2013 at 07:53 PM.

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    boston, ma
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: 2003 macro to output several files thru filtering Pivot Table

    AlphaFrog,

    Thank you for the reply!

    The code is giving me the following error when I run the macro.. "Run time error 1004", " Unable to set the visible property of the PivotItem class"
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: 2003 macro to output several files thru filtering Pivot Table

    Can you provide an example workbook with your pivot tables?

  5. #5
    Registered User
    Join Date
    02-19-2013
    Location
    boston, ma
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: 2003 macro to output several files thru filtering Pivot Table

    The original file is massive ~11,000/Rows, queries, endless formulas.. It was 30M, but I got it down to 1.8m removing the queries, extra pivots, and all most of the data

    I have tried to get the file under 1MG for the forum, and that has not worked, Can I e-mail it to you?

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: 2003 macro to output several files thru filtering Pivot Table

    Make a new workbook with 100 or so rows of data with the same structure like your original and make two pivot tables. Copy your two macros and test if they function the same.

    I just want to see your data structure and test the macro i provided to determine why it errors.

  7. #7
    Registered User
    Join Date
    02-19-2013
    Location
    boston, ma
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: 2003 macro to output several files thru filtering Pivot Table

    Master Forecast_CA2.zip

    I have attached the file zipped,
    I added a new pivot and ran it but still got the error

  8. #8
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: 2003 macro to output several files thru filtering Pivot Table

    Try this one...

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-19-2013
    Location
    boston, ma
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: 2003 macro to output several files thru filtering Pivot Table

    AlphaFrog,

    Thank you,

    Everything works great except one thing.. I changed the vendor names to vendor1, vendor2, etc... How do I make it save it as the actual vendor name like JBS, MST, Etc.. ? that way I dont have to open them and resave each one with the actual vendor name?

  10. #10
    Registered User
    Join Date
    02-19-2013
    Location
    boston, ma
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: 2003 macro to output several files thru filtering Pivot Table

    AlphaFrog,

    I figured out the name change!

    Again THANK YOU, very very much your Awesome!!!!

    Troy

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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