+ Reply to Thread
Results 1 to 2 of 2

Macro to pull data into multiple spreadsheet

  1. #1
    Registered User
    Join Date
    07-23-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Macro to pull data into multiple spreadsheet

    Hihi,

    I need some help to create a Macro that will pull data from 1 spreadsheet into multiple spreadsheets (usually 5 s/s).
    1) Column A* has 5 different dates (eg: 12 -16 Aug)
    2) A Macro will pull out all those with 12 Aug 2011 in Column A roll into a new spreadsheet. It will copy the whole row. A completed example is attached and column C and D** will also populate on the new s/s with cell D1 as the date itself (12Aug)
    3) The same process repeats for all other dates (i.e 13 - 16 Aug)
    4) Each s/s is saved as a formatted name (it will follow the date - 12 Aug 2011)

    *my spreadsheet might not be Col A (pls advise how to change this in my actual s/s)
    **my actual spreadsheet might not be in Column C & D (pls let me know how i can change the code in Macro if the column changes)

    Thanks loads!
    Attached Files Attached Files

  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: Macro to pull data into multiple spreadsheet

    'ONE SHEET to WORKBOOKS (1)
    Here's a macro for taking a sheet with data and creating individual wbs from each unique value in a chosen column. The date is added to the workbook names to give a reference as to when the wbs were created.
    I tweaked that for your workbook...I had to put a hidden value in A1 to get the Advanced Filter to work correctly. Here is the resulting code, I've underlined the things you may need to tweak if you change your layout. Remember to put a blank value (a space will do) in cell A1:

    Please Login or Register  to view this content.

    In the attached workbook, press Alt-F8 and select ParseItems from the macro list.
    Attached Files Attached Files
    _________________
    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