+ Reply to Thread
Results 1 to 7 of 7

VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path

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

    VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path

    Dear experts

    I have master report which consolidated structured data i want split as three unique records depends upon state code in column P:P,copy to new workbook save file name as xlsb in target path.

    there is 11 unique records in P:P like AZ,CA,FL,NY,NJ,NM,MS,NH,TX,GA,HI i want split wb as Report - AZ_CA_FL_MIS.xlsb,Report - NY_NJ_NM_MIS.xlsb,Report - MS_NH_TX_MIS.xlsb, atlast Report - GA_HI_MIS.xlsb becz there is 2 end file only so it get split only two values.



    Please find the attachment Foxstreet is master file, rest of two file excepted result
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path

    One way

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

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

    Re: VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path

    Thanks sir for Code I used to have state code more than 50 unique list any alternative code to avoid state code assign in filter record set manually! is there way to make it simple so as to avoid manual work?
    Last edited by johnmacpro; 05-08-2016 at 01:55 PM. Reason: reason

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path

    You could try with this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

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

    Re: VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path

    Yes sir it works till first 3 state code copy to newworkbook please check code with workbook!!
    Attached Files Attached Files
    Last edited by johnmacpro; 05-09-2016 at 02:16 PM. Reason: attachment

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path

    Please try to change this line of the code:
    Please Login or Register  to view this content.
    with this:
    Please Login or Register  to view this content.
    Regards,
    Antonio

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

    Re: VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path

    Thanks sir Amazing Great Help!! made my day easy one

+ 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. Split records into respective worksheet but different workbook
    By fluffyvampirekitten in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2015, 07:06 AM
  2. [SOLVED] vba split data as per column unique values and move to exact workbook into sht(opencall)
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2014, 11:29 PM
  3. [SOLVED] VBA to data Split from column values as new workbook save into folder with dashboard sheet
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-08-2014, 02:03 AM
  4. VBA to split column values as new workbook along with hidding sheets
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2013, 08:16 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. split records into multiple workbook
    By tghihi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2011, 09:14 AM

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