Hi all,
I've done some programming in Python and R but this is my first foray into VBA so my apologies if any of this turns out to be an absurdly stupid question!
I'm trying to write some VBA code which will do the following two tasks.
1: Sorts a range of data by Name and then by Absolute Value
2: Looks through the sorted data, and if two rows have the same Name and Values which sum to zero, deletes both rows.
As it stands, the code I've written works some of the time, but not all of the time. I've attached a spreadsheet with examples of where it works and where it fails. The code behaves as expected for "Anna" and "Tom" but fails for Jack. It should delete both entries as the names are the same and the values are the same.
Any advice would be greatly appreciated.
The code is as follows (a text box is assigned to the first piece of code (Sort_And_Match):
Please Login or Register to view this content.
Please Login or Register to view this content.
Please Login or Register to view this content.
Bookmarks