+ Reply to Thread
Results 1 to 2 of 2

Want to Move Rows into New Workbooks by a Unique Identifier

  1. #1
    Registered User
    Join Date
    05-30-2014
    Posts
    1

    Want to Move Rows into New Workbooks by a Unique Identifier

    I am trying to disaggregate an excel workbook. I would like to make separate workbooks for each unique value of my A column. I want to have all the column names (columns A through CM) and for the table design to remain the same. My current file has 58 unique values and over 8,000 rows. Later files will have many more unique values and thousands more rows. Please help!!!

    I have almost 0 experience with VBA - I am a SAS girl, so I need step-by-step instructions.
    Last edited by drkwok; 05-30-2014 at 01:50 PM.

  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: Want to Move Rows into New Workbooks by a Unique Identifier

    'SHEET1 TO MANY WORKBOOKS

    Here's a macro for parsing rows of data from one sheet to many workbooks based on one column, workbooks named for the same values in that column.The macro names the workbooks for values in the column PLUS today's date, you can take a stab at removing the date part...or leave it in, it's a good technique.


    ----------------
    How/Where to install the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. update the parts marked in red on the website as they must be tweaked for your environment. The comments in each sections should make it clear what the needed tweaks relate to.
    6. Get out of VBA (Press Alt+Q)
    7. Save as a macro-enabled workbook

    The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.
    Last edited by JBeaucaire; 12-27-2019 at 03:45 AM.
    _________________
    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)

Similar Threads

  1. Macros to move multiple rows of data for same unique identifier into one.
    By TPMIS in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 07-05-2013, 03:14 PM
  2. Adding Unique Identifier to Rows of data
    By adam_w2009 in forum Excel General
    Replies: 13
    Last Post: 04-21-2013, 06:37 AM
  3. Merging Rows & Columns on Unique Identifier
    By oxv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2012, 06:52 PM
  4. [SOLVED] Need help with merging rows by matching unique identifier.
    By lunatyck in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-31-2012, 11:59 AM
  5. Macro to move data from one cell to another where unique identifier changes
    By boothyuk123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2012, 05:36 PM

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