I have a variable (rptdate) that the user enters. I want to create a another variable (startdate) that is 7 days earler than the rptdate.
*I plan on using enddate also so that has been created below in addition to the other variables
Dim rptdate As Variant
Dim StartDate As Variant
Dim enddate As Variant
rptdate = InputBox("enter report date")
enddate = Format(rptdate, "mmmm d,yyyy")
StartDate = DateAdd(D, -7, enddate)