I have a list of ever growing data, I can define the start and last row dynamicaly.
I want a macro that will go through each cell in Range("A2:A" & LastRow)
and delete the data in that cell if the corresponding cell in column B does not equal "Y"
Basically, each cell in Column A has an outstanding balance, each cell in Column B Is a drop down data validation List (the only option is "Y").
If a user has marked, for example, B512 as "Y", then do not delete the data in cell A512, otherwise clear the contents.
I want it to loop through each cell in the range and do this.
I want a macro that will go through each cell in Range("A2:A" & LastRow)
and delete the data in that cell if the corresponding cell in column B does not equal "Y"
Basically, each cell in Column A has an outstanding balance, each cell in Column B Is a drop down data validation List (the only option is "Y").
If a user has marked, for example, B512 as "Y", then do not delete the data in cell A512, otherwise clear the contents.
I want it to loop through each cell in the range and do this.