I am still new to vba and am writing a macro to calculate the time between two dates in two columns using dateDiff then print the difference in the cell next to it. i would also like do use a do until empty
Column A holds the start date Column B holds the end date Column C will hold the answer
i have some useful code but most of it is written to understand the goal of the macro and needs changed.
Range("A2").Select
Do Until IsEmpty(ActiveCell)
 For i = 2 To 25
  date1 = ["A" & i]
  date2 = ["B" & i]
  answer = DateDiff("n", date1, date2)
  "C" & i = answer
 next i
Loop
I appreciate any help!
 
     
     
    