View Single Post
 
Old 07-04-2016, 11:24 PM
DougMVP DougMVP is offline Windows 7 32bit Office 2010 32bit
Advanced Beginner
 
Join Date: Nov 2013
Posts: 50
DougMVP will become famous soon enough
Default

Use

Dim i As Long
With ActiveDocument
.Variables("Date").Value = InputBox("Enter the start Date")
.Range.Fields.Update
.PrintOut
For i = 1 To InputBox("Enter the Number of Days")
With .Variables("Date")
.Value = DateAdd("d", 1, .Value)
End With
.Range.Fields.Update
.PrintOut
Next i
End With
Reply With Quote