Hi All,
I am trying to calculate months remaining between two dates, I am trying with below code, but doesn't do anything...Kindly help....
I am trying to calculate months remaining between two dates, I am trying with below code, but doesn't do anything...Kindly help....
Code:
Sub ChangeMonthsRemaining()
Dim cl As Range
Application.ScreenUpdating = False
For Each cl In Range("$D$2:$D" & Range("$D65536").End(xlUp).Row)
If UCase(cl) = "Months Remaining" Then
cl.Offset(0, 1).Formula = "=MONTH($C$1-$D$1)"
End If
Next cl
Application.ScreenUpdating = True
End Sub