+ Reply to Thread
Results 1 to 2 of 2

Split Excel report and save separate Workbooks to respective locations

  1. #1
    Registered User
    Join Date
    09-17-2010
    Location
    seattle
    MS-Off Ver
    Excel 2007
    Posts
    1

    Split Excel report and save separate Workbooks to respective locations

    I'm trying to figure out a way to modify my macro so it can use another Workbook with a list of file locations to save in the respective location. This macro below splits a large report file into separate files based on common values in column A. These values are location codes that are also in column A in my other Workbook containing the file folder locations in column C.
    *
    I receive these reports daily and have to manually put each file into their dropbox locations, which I imagine can be done easily with a little more code. I'm stumped. I've tried another while loop and if statements. Ideally, I will open my report file, open the macro file, open the dropbox file, run the macro and the file will split up and go to their respective locations.
    *
    *
    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Split Excel report and save separate Workbooks to respective locations

    My suggestion is to add a VLOOKUP formula to your rngCrit in the next column so that as each value is evaluated, the path will be right next to it and easy to use. Something like this:
    Please Login or Register  to view this content.


    The VBA version of that VLOOKUP formula would obviously need you to edit the path and sheet name to the other workbook to get the references to appear properly.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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