-
Hi Compariniaa,
What about Decmber?
For a VBA solution, based on your idea
[VBA]Sub UpDate()
Dim Dy As Long, Mh As Long, Yr As Long
For Each cel In Selection
Dy = Day(cel)
Mh = (Month(cel) Mod 12) + 1
If (Month(cel) Mod 12) = 0 Then
Yr = Year(cel) + 1
Else
Yr = Year(cel)
End If
cel.Value = DateValue(Dy & "/" & Mh & "/" & Yr)
Next
End Sub[/VBA]
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules