I am new to VBA in excel and want to use a Do While loop to do some formatting.
What I want to do is compare the value in each cell in column1 (which is names) with the cell directly below it. If the names are match I will automate some calculations. If they do not match I want the loop to continue down the column until it finds the next match.
I want the loop to compare A2 to A3 then A3 to A4 ect.
What is the best way to set up my variables for this? I can do the calculation macros fine, but for some reason this basic component of the loop is making my head hurt.
cheers