+ Reply to Thread
Results 1 to 3 of 3

VBA to create folder and then save multiple files In

  1. #1
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    VBA to create folder and then save multiple files In

    Hi Guys,

    Got a bit of a complicated one (considering I am pants with VBA). Below is my code I have so far.
    I'm attempting to click a macro button that would then run and
    1. Create a folder based on a cell (S6)
    2. Filter the pivot table based on the input (This bit works fine)
    3. Save a new file named based on a cell (S5) within the folder created
    4. Filter the pivot table to new criteria (Again, works fine)
    5. Save new file based on cell (s5) within folder created
    6. Repeat with all pivot criteria....

    Sorry my code is a massive mess, I picked up the folder creation and saving VBA from the internet and have been trying to play around with it but to no avail

    Any help massively appreciated


    Please Login or Register  to view this content.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: VBA to create folder and then save multiple files In

    Post a workbook, and what exactly is the problem? Can't drag myself through the code at 3am in the morning.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: VBA to create folder and then save multiple files In

    JapanDave, you're a hero being on here at that time. Sadly I'm not at my computer so can't upload but will when I get the chance, but I'm guessing you'll be in dreamland by then.

    The problem is when I run the script it runs through like it worked but nothing has been saved at the end of it .

    Thanks for the reply anyway Mr Dave

+ 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