+ Reply to Thread
Results 1 to 4 of 4

Looking for way to: Copy/Paste range of cells to another worksheet based on matching crite

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Looking for way to: Copy/Paste range of cells to another worksheet based on matching crite

    I've looked at similar posts but have to post this as a new question as they didn't solve my issue:

    I have a file with names down column B in sheet 1 and want to transfer all cells C to AA in the row associated with specific names in column B of this sheet to worksheet 2 which is set up with all the same headings and just a limited selection of names from sheet 1. I can write a macro to copy the data but need to get the macro to look for the name in the cell in sheet 2 where I have the name I want the data transferred for. How do I get it to do this for each new cell I go to for which I want to extract the data from sheet 1 - can anyone help please?

    I can't see how to attach my file (Can't see paper clip?? or "manage attachments" button.... )

    I created this macro but need to replace "Andrew Dibby" with the name in the cell I'm in:


    Please Login or Register  to view this content.
    I've attached file with 2nd sheet open and now want to copy the data for - say - "David Bell" from sheet 1, where I have the second row duplicated by the above macro for "Andrew Dibby". Hope someone can please help! Thanks, Mary
    Attached Files Attached Files

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Looking for way to: Copy/Paste range of cells to another worksheet based on matching c

    Hi, MaryCW,

    maybe like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    11-25-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Looking for way to: Copy/Paste range of cells to another worksheet based on matching c

    Thanks, Holger but when I copied and pasted that over my existing macro and ran it, it copied all the names and their data to the new sheet. I need to enter the names in manually and run the macro to look in sheet one and carry it over to sheet 2. I need to get the macro to look for the name in column B in the second worksheet cell I've just typed the name into and get it to bring the data for that name into sheet B. Any more suggestions would be welcome. Thanks! Mary

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Looking for way to: Copy/Paste range of cells to another worksheet based on matching c

    Hi, Mary,

    IŽd go the opther way and delete those rows that do not match but anyhow here for a start (you might get problems as this will look at part of the names and will only copy the first name, if possible IŽd go with an unique identifier here instead as part of a name):
    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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. Replies: 1
    Last Post: 11-25-2013, 09:30 AM
  2. [SOLVED] Help with Macro to Copy/Paste cells to different worksheet based on Value
    By BehrBrew in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-25-2013, 06:41 AM
  3. Copy/Paste range of cells to another worksheet based on matching criteria
    By maa50904 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-05-2013, 12:07 AM
  4. Copy & Paste Range of Cells Based On Combo Box Value
    By medihx in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2011, 04:43 PM
  5. Copy range from worksheet based on data in a column and paste to end of another ws
    By DavyNixon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2005, 01:29 PM

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