How can I create a macro that will add a day in one cell and subtract a day in another cell at the same time? Here is what I have so far.
Sub ChangeDates()
Dim cell As Range
For Each cell In Range("B:B")
cell.Value = cell.Value + 1
Next cell
For Each cell In Range("C:C")
cell.Value = cell.Value - 1
End Sub
Offset to the rescue!!
Another thing you may consider is either looking at usedrange to not have to iterate through all of column B or put in a check to make sure the cells aren’t blank… Just faster, better coding and stops you from having bad values where the cells were originally blank…