+ Reply to Thread
Results 1 to 5 of 5

Search Value from selected range and copy row to new worksheet

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

    Search Value from selected range and copy row to new worksheet

    Search defined value from selected range then copy row to new worksheet.

    The sample was created at file attached. Please help.
    Attached Files Attached Files
    Last edited by Shermaine2010; 01-24-2017 at 10:23 AM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Search Value from selected range and copy row to new worksheet

    Based upon what you have asked I have written some code and put it the attached file
    Attached Files Attached Files
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

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

    Re: Search Value from selected range and copy row to new worksheet

    Quote Originally Posted by Keebellah View Post
    Based upon what you have asked I have written some code and put it the attached file
    It look great. Let me study study first. Anything, I ask you again.
    Thanks

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

    Re: Search Value from selected range and copy row to new worksheet

    Quote Originally Posted by Keebellah View Post
    Based upon what you have asked I have written some code and put it the attached file
    I add in advance filter search for multiple criteria. however I got syntax error fpr below code

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Search Value from selected range and copy row to new worksheet

    Well, when you decide to use the code provided and you edit it then you should keep in mind that you show do it correctly.
    It's full of errors and missing references, all in incorrect order and the error you show is due to the fact that you forgot to place an _ after the Copy, to indicate that the following line of code belongs there, well, to make it short, when you copy and use, check the code, step by step

    Here's the corrected version with the modifications, I hope this is the result you wanted.

    BTW you CANNOT select a range in a worksheet if it's not active !!!

    Please Login or Register  to view this content.

+ 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. Search through sheet and copy selected data to other sheets
    By acopp24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2016, 11:38 AM
  2. [SOLVED] Copy range from user selected sheet of another file to original worksheet
    By bob101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2015, 09:54 AM
  3. Replies: 2
    Last Post: 03-17-2014, 04:19 PM
  4. Macro to Copy Selected Range from one Worksheet to Another, based off of Criteria
    By KLiving in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-04-2013, 03:02 PM
  5. Excel: Macro to copy selected cells from Worksheet to a specified Worksheet(s)
    By hzman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2013, 04:26 AM
  6. Search for specific date range, copy entire row and paste to new worksheet
    By turias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2013, 03:57 PM
  7. VBA To copy selected data from one sheet to another depending on search box
    By leighmetcalfe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2012, 05:52 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