+ Reply to Thread
Results 1 to 5 of 5

VBA Macros to copy row to a new sheet

  1. #1
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    905

    VBA Macros to copy row to a new sheet

    Hello Again,

    I am looking for VBA Macros where i can extract complete row uptill certain column and add a new sheet and past the row with header.

    Details Below:-

    I have a worksheet with column from A till BQ (Can be add or delete columns).

    Check the unique values in column BL and create the names for that values and extract the data uptill blue color column i.e. From Column A till AU.

    Sample file is attached for your reference.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Macros to copy row to a new sheet

    Try the attached.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    905

    Re: VBA Macros to copy row to a new sheet

    Thanks AB33 it is working i need 1 more thing. Let say i need to extract only 5-Target Not Match without input box function how should i do that. Your script is extracting all the unique values from column BL.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Macros to copy row to a new sheet

    I am not sure I understand your request.
    The code does extract values which are in column BL. The names of the tabs are created from these values. The code does not duplicate names, if a name tab exists, it copies its rows only. I have not used input box function. If you want to
    "extract only 5-Target Not Match". The data for this tabs are on that tab and you can ignore all the other tabs, or I can add a line which deletes all sheet except 5-Target Not Match, but this defeats the purpose of writing the code in the first place.

  5. #5
    Valued Forum Contributor
    Join Date
    01-11-2012
    Location
    Riyadh, K.S.A.
    MS-Off Ver
    Windows 11 with Excel 2013 & 2016
    Posts
    905

    Re: VBA Macros to copy row to a new sheet

    No no i totally agree with you it is working perfect.

    Topic marked as solved and reputation added.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Macros to copy row to a new sheet

    hecgroups,
    You are welcome and thank you very much for rep!

+ 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