Nightlytic
Member
Hi,
Could someone take a look at attached for me? I need a macro that will take a specifc range (the range varies, can start anywhere and be a single cell or several rows long, always single column though), lets call it "X", within column K, and match each value in it back to the dataset to the left, leaving "1" in column E corresponding to the relevant reference (ignore all else).
As part of the wider picture, this will leave a string of 0 and 1 values in the data indicating what references users have selected, and will assist some formulae and conditional formatting. I wanted to do the match in VBA because users will sometimes add a few references to a pre-existing large list of references (above the range "X", that's why range "X" varies), and match back to also large datasets which would slow this down a lot... I have the benefit that a previous macro already declares the newly added data as a range, "X", but I don't know how to take each of the values in it and compare back to the dataset.
Could someone take a look at attached for me? I need a macro that will take a specifc range (the range varies, can start anywhere and be a single cell or several rows long, always single column though), lets call it "X", within column K, and match each value in it back to the dataset to the left, leaving "1" in column E corresponding to the relevant reference (ignore all else).
As part of the wider picture, this will leave a string of 0 and 1 values in the data indicating what references users have selected, and will assist some formulae and conditional formatting. I wanted to do the match in VBA because users will sometimes add a few references to a pre-existing large list of references (above the range "X", that's why range "X" varies), and match back to also large datasets which would slow this down a lot... I have the benefit that a previous macro already declares the newly added data as a range, "X", but I don't know how to take each of the values in it and compare back to the dataset.