+ Reply to Thread
Results 1 to 3 of 3

VBA Search for condition, copy and paste array

  1. #1
    Registered User
    Join Date
    02-16-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    VBA Search for condition, copy and paste array

    Hello Everyone!

    Forgive me in advance I am new to the forum and do not have much experience with VBA (I am trying to learn).

    Currently, I perform a manual task here I have created two additional columns at the end of a set of data. The first column signals the beginning and end of a series (“”, “Begin”, or “End”). The second column checks to see if a condition is met within that series and shows as either “Alert” or “”. I would like to remove the individual rows (from “Begin” to “End”) where the condition is met in column 4 (“Alert”) and move them to a new sheet in the workbook. There can be multiple instances of “Alert” in column 4, and I would like to return only those sequences where there is an “Alert” in that column. That is to say if there is a series of rows (Begin to End) that do not have an Alert in column four I would not wish to see them.

    Can someone please point me in the right direction with this?

    I have included an attached example

    Thank you in advance!

    Best,

    Jack

    Jack_Question.xlsx
    Last edited by JohnKiernan; 02-16-2012 at 03:51 PM. Reason: Poor Title Choice

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: VBA Search for condition, copy and paste array

    Hi

    Try this. It doesn't have any formatting, but I think it does bring across the relevant data.

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    02-16-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    [SOLVED] Re: VBA Search for condition, copy and paste array

    This works great! Thank you very much!
    Last edited by JohnKiernan; 02-17-2012 at 10:25 AM. Reason: Solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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