Sub IncrementDate()
If Not IsDate(Range("A1")) Then
Range("A1") = Application.InputBox(Prompt:="Cell A1 does not contain a valid date." & _
vbCrLf & "Enter a valid date...", Type:=2)
End If
Range("A1") = Range("A1") + 7
Range("A1").AutoFill Range("A1:A10"), xlFillCopy
Dim r As Long
For r = 1 To 10
Cells(r, "A") = "'" & Format(Cells(r, "A"), "dd-mm-yy")
Next
End Sub
|