Copy rows to other sheet based on multiple conditions in multiple columns

  • Hii,
    I want a macro that will work something like a filter i.e. it should ask the user to first enter the keyword he wants to search then he should be able to specify the column. This much code i have with me which i have given in the workbook attached. What i want more is to be able to search some other keyword which may be in the same column or other. It would be better if it asks which column. This is similar to using filter on multiple columns the only difference is after every condition is given the rows which meet the criteria should be pasted on a new sheet.
    I have some idea for the code as when it is run it pops up an input box which will have 2 input boxes one for keyword & other for column. Also it should have a "next" button for more conditions & an "end" button to specify that all the conditions have been given. I have attached a sheet for reference which has the macro i already have.
    Thanx in advance

  • Re: Copy rows to other sheet based on multiple conditions in multiple columns


    Will this do?


  • Re: Copy rows to other sheet based on multiple conditions in multiple columns


    Hii Justin,
    Thanx 4 responding bt i want a code similar to a filter on multiple columns i.e. referring to the attached sheet if i find Apple in column "C" then i should also be able to search between these Apple rows for other keyword e.g. season "Winter" in column "B". Hence all the rows which contain Apple as well as Winter must be pasted in the other sheet

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!