Q: using vba's MONTH

  • Thread starter Thread starter John
  • Start date Start date
J

John

Why does this code return a value of "2005"? It needs to return "2004".
(range "a4" equals mar-13-2004)

With Range("a9")
If (Month(Range("a4") > 6)) Then
.Value = Year(Range("a4")) + 1
Else
.Value = Year(Range("a4"))
End If
End With
 
Back
Top