Suppose I have below excel sheet,And I need to find the difference between them and result need to put back to another column:
ColA Co
You can subtract one date from the other, and then set the formatting of the cell:
'Within the Do..While loop Dim cell Set cell = objSheet4.Cells(intRow4,11) cell.Value = Date2 - Date1 cell.NumberFormat = "hh:mm:ss"