+ Reply to Thread
Results 1 to 4 of 4

Searching rows for specific text in first cell, then copy all rows containing that text

  1. #1
    Registered User
    Join Date
    08-06-2014
    Location
    Netherlands
    MS-Off Ver
    MS Office 2007
    Posts
    4

    Searching rows for specific text in first cell, then copy all rows containing that text

    Hi,

    I have two sheets in my workbook (sheet A and sheet B).
    Sheet B contains data like this ([ ] is a cell):

    [Mark 1989][Links][4][Pennen]
    [Mark 1989][Midden][4][Pennen]
    [Mark 1989][Links][5][Stiften]
    [Henk 1939][Links][4][Pennen]
    [Henk 1939][Rechts][8][Pennen]
    [Henk 1939][Links][2][Stiften]
    Etc.

    On sheet A I want to have a dropdown-menu or something where I can choose Mark 1989 or Henk 1939 etc.
    After selecting one of those I want VBA to copy all rows from sheet 2 of which the first cells contains the text chosen from the drop down menu.

    So when I choose Mark 1989 I want VBA to copy

    [Mark 1989][Links][4][Pennen]
    [Mark 1989][Midden][4][Pennen]
    [Mark 1989][Links][5][Stiften]


    to sheet A.

    Is this possible with VBA?

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Searching rows for specific text in first cell, then copy all rows containing that tex

    Are you only after a VBA solution? That could be done with formulae too. Perhaps post a workbook.

  3. #3
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Searching rows for specific text in first cell, then copy all rows containing that tex

    Of course it is possoble
    exmpl.xlsm

  4. #4
    Registered User
    Join Date
    08-06-2014
    Location
    Netherlands
    MS-Off Ver
    MS Office 2007
    Posts
    4

    Re: Searching rows for specific text in first cell, then copy all rows containing that tex

    Quote Originally Posted by StephenR View Post
    Are you only after a VBA solution? That could be done with formulae too. Perhaps post a workbook.
    Yes I prefer a VBA solution!

    Quote Originally Posted by lancer102rus View Post
    Of course it is possoble
    Thanks, works great!

+ 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. Select or copy rows with specific text
    By rvdkaaij in forum Excel General
    Replies: 0
    Last Post: 07-13-2014, 10:45 AM
  2. Replies: 7
    Last Post: 05-06-2014, 11:34 AM
  3. Copy rows if specific text in coloum A
    By superking in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2014, 03:52 AM
  4. Copy rows if specific text in coloum A
    By superking in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2014, 03:10 AM
  5. Copy/Paste Rows that Contain Specific Text
    By Mike Woodard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2006, 03:40 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