+ Reply to Thread
Results 1 to 3 of 3

Copy from one sheet to another based on column headers

  1. #1
    Forum Contributor
    Join Date
    05-09-2010
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: Based on Column Header find and copy data from one sheet to another

    (source)
    Quote Originally Posted by JBeaucaire View Post
    Try this:

    Please Login or Register  to view this content.
    I tried apply this code to my file. It is successful.
    But, If the header contain with formula, VBA code doesn't apply on that column.
    Any code have add in to allow the data copy over?
    Last edited by JBeaucaire; 08-31-2014 at 10:04 AM. Reason: Moved to its own thread. Please read and follow the Forum Rules, link above in the menu bar.

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Based on Column Header find and copy data from one sheet to another

    Assuming your row1 headers do not include any blanks, you can change this one line of code that skips blanks:
    Please Login or Register  to view this content.

    ....to this instead:
    Please Login or Register  to view this content.
    _________________
    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!)

  3. #3
    Forum Contributor
    Join Date
    05-09-2010
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    209

    Re: Based on Column Header find and copy data from one sheet to another

    Thanks. It is work to fit my requirement.
    There is another question, if the body contain with formula in sheet 1, the data copy over is together with formula.
    How to set it to copy the data from sheet 1 to sheet 2 with extract data without formula.

+ 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] listbox with column headers as a specific sheet column headers
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2014, 04:40 AM
  2. Macro to copy row values based on a identical column headers
    By Vijaya Pratap in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2013, 04:12 AM
  3. Summary - Copy the columns based on column headers
    By rafiomeon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2012, 10:32 AM
  4. Search Column Headers and Copy into a Sheet
    By ukguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2012, 10:28 AM
  5. Copy column data on one sheet to row or column date on another sheet based on user in
    By soready42012 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2012, 12:03 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