+ Reply to Thread
Results 1 to 2 of 2

Need vba to split unique rows of column H,G,I from sheet of East,West,North

  1. #1
    Forum Contributor
    Join Date
    02-28-2016
    Location
    australia
    MS-Off Ver
    2019
    Posts
    194

    Need vba to split unique rows of column H,G,I from sheet of East,West,North

    Dear expert

    I have (Freak) master consolidate report with three multiple tabs i want split same unique rows from three sheets from column of H;G;I and make as newworkbook with unqiue values with same sheet names to target path

    Mypath is D:\Jews\Forum\forums

    for e.g TE001 rows in three sheets col of H:H EAST,col of G:G WEST,col of I:I NORTH.....want make single workbook as TE001.xlsb...till end of unique rows.

    please find the attachment.

    Freak is master file...TE001,TE002,....etc out file
    Attached Files Attached Files
    Last edited by johnmacpro; 04-11-2016 at 02:36 PM. Reason: reason

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Need vba to split unique rows of column H,G,I from sheet of East,West,North

    Ok, I had a go at solving your problem.

    I've made a file named "Model.xlsb". This file is identical to your "Freak.xlsb" except that this file contains no data aside from the headings in sheets "EAST", "WEST and "NORTH"

    This file should be put in folder "D:\Jews\Forum\forums\"

    The file "Freak_mod.xlsb" is your master file with a macro. Put it in whatever folder you like. To test run macro "MakeFile"

    Macro first find all the unique "TE00?" values, it then sets an autofilter on sheet "EAST" with first "TE00?" value, copies the result and opends the "Model.xlsb", activates sheet "EAST" and past the result, activates "Freak_mod.xlsb" and uses same "TE00?" value for an autofilter on sheet "WEST" copies the result to c and activates "Freak_mod.xlsb".

    After the last values from sheet "NORTH" is copied to "Model.xlsb", the file is saved using the first "TE00?" as a file name to folder "D:\Jews\Forum\forums\".

    Then the macro uses the next "TE00?" for the autofilter and opens the "Model.xlsb" to catch the values from this run and so forth .....

    Alf
    Attached Files Attached Files
    Last edited by Alf; 04-13-2016 at 09:44 AM.

+ 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. Need Macro code to split data split in 7 sheets based on variable rows in column A
    By Alija_21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2015, 08:03 AM
  2. Macro to list a multi-column sheet into unique rows
    By ab11viva in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2014, 03:37 PM
  3. Replies: 2
    Last Post: 06-11-2014, 11:14 AM
  4. Replies: 2
    Last Post: 03-16-2014, 10:04 AM
  5. Split Data Unique Value From 2 Sheet of A column and Move to 2 Sheet with Splited Values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2013, 04:21 AM
  6. Split Rows For Unique Values In A Column To Different Workbooks
    By ashishmac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2013, 02:45 PM
  7. Replies: 7
    Last Post: 05-05-2011, 04:25 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