+ Reply to Thread
Results 1 to 5 of 5

Help searching column for variable text and selecting result as range

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    MN
    MS-Off Ver
    Excel 2003
    Posts
    19

    Unhappy Help searching column for variable text and selecting result as range

    I need help searching column B for cells that contain variable text. When the code finds text it needs to search for the next cell that has text. I need to select the first cell with text to the next cell with text as the range. I would like to copy that range to Sheet 2. The code then needs to loop through the column finding the next pair of cells and copy that range. I have included an example of what I need to do. Any help would be greatly appreciated, as I am getting no where fast.

    Thanks

    Jim
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,376

    Re: Help searching column for variable text and selecting result as range

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

  3. #3
    Registered User
    Join Date
    05-31-2012
    Location
    MN
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Help searching column for variable text and selecting result as range

    Nilem,

    Thank you very much! One question what would I need to change in order to copy data from columns A B C D E. I have attached an example of what it needs to look like on Sheet 2.

    Thanks

    Jimn
    Attached Files Attached Files

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,376

    Re: Help searching column for variable text and selecting result as range

    For different number of columns.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-31-2012
    Location
    MN
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Help searching column for variable text and selecting result as range

    Thank You! This worked perfectly, it was exackly what I needed.

    Jim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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