Hello,
I'm trying to figure out a way to write a macro that finds a specific first name, last name and address and then deletes the row that contains this data. I've recorded a macro that does this, but it obviously has some problems. For example, it only searches by one of these three columns (first, last, address) so there is the potential that it will delete records that share the same first name. It also uses static cell references, so if I try to use it in other files it will delete those cells instead of the cells it found.
Below is the macro that I recorded, if that is any help. Also, if it's possible to find based on all of the fields in the document, that would be even better. I've attached a sample document. What I'd want it to do is find Cassidy, Jo at 808 Yellowstone Rd Nowhere, MS 1234-5680 and delete that entire row, then find Delores, Tate at 9083 Catbird Ct Somwhere, OH 1234-5681 and delete that entire row; then find Innis, Fred at 7493 Bottle Cir Pond, AK 1234-5686 and delete the entire row.
If you can assist me or point me in the right direction it would be greatly appreciated!!
I'm trying to figure out a way to write a macro that finds a specific first name, last name and address and then deletes the row that contains this data. I've recorded a macro that does this, but it obviously has some problems. For example, it only searches by one of these three columns (first, last, address) so there is the potential that it will delete records that share the same first name. It also uses static cell references, so if I try to use it in other files it will delete those cells instead of the cells it found.
Below is the macro that I recorded, if that is any help. Also, if it's possible to find based on all of the fields in the document, that would be even better. I've attached a sample document. What I'd want it to do is find Cassidy, Jo at 808 Yellowstone Rd Nowhere, MS 1234-5680 and delete that entire row, then find Delores, Tate at 9083 Catbird Ct Somwhere, OH 1234-5681 and delete that entire row; then find Innis, Fred at 7493 Bottle Cir Pond, AK 1234-5686 and delete the entire row.
If you can assist me or point me in the right direction it would be greatly appreciated!!