Hello. I have a macro and I can see what is wrong, but I cannot work out a solution. My macro clears a small range and then goes to the beginning for the next due date. I then enter the next date manually into B25. I thought the following would take the next date from the A column starting from A53. When I run the macro I can see it keeps returning to A53 and not A54, A55 and so on.
Sub Reset_values()
'
' Reset values and take next date from cell A53 onwards and place in cell B25
'
Dim nd As Integer
nd = 53
Range("E5:K5").Select
Selection.ClearContents
Range("B25").Select
ActiveCell = "=A" & nd
Range("E5").Select
End Sub
nd is the variable for the row number and it keeps returning to A53 every time it runs. Obviously I am going about this all wrong so the correct coding would be much appreciated. Thank you so much for looking at this. Hope you are all staying safe.