cyrusharding
New Member
- Joined
- Nov 22, 2021
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hi all,
Can someone help me with a VBA code to go through a spreadsheet of over 1,000 rows, and starting at row 6 and continuing until the end of the data set, delete a row if the value in a cell in one column of that row does not match the value in the next column over of that row.
For example, if the value in cell G6 does not match the value in cell H6, I want the program to delete all of row 6 and then move on to the next row (row 7) to see if the value in G7 matches the value in H7, and continue until the end of the data set.
I hope this makes sense. Any assistance would be greatly appreciated!
Can someone help me with a VBA code to go through a spreadsheet of over 1,000 rows, and starting at row 6 and continuing until the end of the data set, delete a row if the value in a cell in one column of that row does not match the value in the next column over of that row.
For example, if the value in cell G6 does not match the value in cell H6, I want the program to delete all of row 6 and then move on to the next row (row 7) to see if the value in G7 matches the value in H7, and continue until the end of the data set.
I hope this makes sense. Any assistance would be greatly appreciated!