Moving rows to other sheets

E

Edwin Villamayor

I was wondering if anyone could be of assistance with my dilemma. I
want to run a macro that does the following:

Sheet 1 has records with column headers such as name, address, and
date. If the date field is populated with a date, I want to take the
entire row and move it to Sheet 2, then delete the source row in Sheet
1. However, if the date field is populated by a word such as "Dead
Deal" I want to take the entire row and move it to Sheet 3, then
delete the source row in Sheet 1.

Thanks in advance.

Edwin
 
B

Boxman

Assuming you are only looking for a way to distingush between the two
records you can use the ISTEXT function to test for which type of
record you have. Dates are numbers so if your date field is in col A
and you are on the record at line 12 you can use the ISTEXT() function
to determine how to move the record.

I am assuming that you know how to step through the records and select
a new free line in your target sheets.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top