+ Reply to Thread
Results 1 to 6 of 6

macro to copy speciifc headers data to an extract sheet in same workbook

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,143

    macro to copy speciifc headers data to an extract sheet in same workbook

    Hi All

    I have an export sheet where there are several headers (DATA SHEET).

    Am looking for a macro to copy specific headers to last data row as per extract sheet .

    It should insert the name as per extract sheet sample (facture no).

    For ease of understanding I have put the columns headers on the extract sheet row 2 (green) row 1 are the headers to be extracted

    However I am looking for a code which is a modulable so that I can insert the header as per specific requirements it may be contigious or non contigious depending on instructions recieved , the data goes up to 20000 rows .

    Thanks if any one can assist
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to copy speciifc headers data to an extract sheet in same workbook

    Hi JEAN1972

    Are there any Columns you would NEVER wish to extract?
    Are there Columns you would ALWAYS wish to extract?
    Are there Columns you may SOMETIMES wish to extract?

    Is there a preferred extraction sequence for those Columns you ALWAYS/SOMETIMES wish to extract?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,143

    Re: macro to copy speciifc headers data to an extract sheet in same workbook

    Quote Originally Posted by jaslake View Post
    Hi JEAN1972

    Are there any Columns you would NEVER wish to extract?
    Are there Columns you would ALWAYS wish to extract?
    Are there Columns you may SOMETIMES wish to extract?

    Is there a preferred extraction sequence for those Columns you ALWAYS/SOMETIMES wish to extract?
    Hi Jaslake

    As per extract sheet, these columns are the most I am requested to do but sometimes It may be less ,sometimes not in same sequence order as per sample shown

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to copy speciifc headers data to an extract sheet in same workbook

    Hi JEAN

    There's a User Form in the attached...it's called by CTRL + x. It'll present a Form with a ListBox populated by
    these columns are the most I am requested to do
    You can simply Select All or you can Multi Select and Click Add. The manner in which you Select and Click Add will determine the Column Order of the resulting Report.

    Play with it...let me know.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,143

    Re: macro to copy speciifc headers data to an extract sheet in same workbook

    Quote Originally Posted by jaslake View Post
    Hi JEAN

    There's a User Form in the attached...it's called by CTRL + x. It'll present a Form with a ListBox populated by
    You can simply Select All or you can Multi Select and Click Add. The manner in which you Select and Click Add will determine the Column Order of the resulting Report.

    Play with it...let me know.
    Hi Jake

    I play with it at at all angles and exactly what I was looking for .

    It worked much more than I expected, you save me from a tedious daily chore

    Thank you a lot for your assistance.

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: macro to copy speciifc headers data to an extract sheet in same workbook

    You're welcome...glad I could help. Thanks for the Rep.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] vba to copy data by specific headers to a master sheet in same workbook
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2016, 10:08 AM
  2. [SOLVED] Macro to copy paste the data in one sheet to another based on the headers
    By sarajun_88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2016, 10:28 AM
  3. Macro to copy paste the data in one sheet to another based on the headers
    By sarajun_88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2016, 05:32 AM
  4. Save workbook to speciifc path
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2015, 10:24 AM
  5. Copy Data from one sheet to another sheet where headers match
    By mtilbury in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-24-2015, 02:26 PM
  6. [SOLVED] Copy Column A data to Sheet 2 where rows matches Sheet 2 headers
    By SCDE in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2015, 12:14 AM
  7. Code to copy data to another workbook using headers
    By dbracken1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2013, 03:10 AM

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