+ Reply to Thread
Results 1 to 2 of 2

VBA Search string in Column B and then copy row to a specified row in another sheet

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    VBA Search string in Column B and then copy row to a specified row in another sheet

    Hi,

    I have the following situation:

    I need to make a string search in column B", but only starting in row 2.
    Everytime the string "x" is found in that column, I need to copy the row where ''x'' was found to another sheet, starting on row 2.
    I can define a row limit for the search, for example from "B10:B100".

    Can anyone help me with the code?


    Thank you!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Search string in Column B and then copy row to a specified row in another sheet

    Hello bone343,

    Try this macro. Add a new VBA module to your workbook and paste the code into it. You can then call the macro using the keys ALT+F8 or attach it to button.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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 string in a column then copy entire rows to another sheet
    By vannylette in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-12-2013, 12:16 PM
  2. Macro to search for a string and copy its row to another sheet
    By akynyemi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2013, 06:50 PM
  3. Search for String and copy resul as rows to new sheet
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-28-2012, 12:39 PM
  4. Search column for string and return every row with that string in new sheet
    By myers601 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2012, 06:02 PM
  5. Search some string copy and paste it in other sheet.... !!!
    By mkmirza92 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2010, 06:14 AM

Tags for this Thread

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