Hello, I have this bit of code someone gave me a while back and I needed to make an adjustment. What it does is in A1 is a number 4 and in B7 there is a date starting on monday. and a button that runs the code. It prints mon, tues,wed thurs and skips back to monday. what I need it to do is print monday twice tues twice ect. for the 4 days. thanks!
Code:
Sub FourDays()
Dim lngMyCount As Long
With Sheets("Plant Attendance Four Day")
For lngMyCount = 1 To .Range("A1")
.PrintOut
.Range("B7") = .Range("B7") + 1
Next lngMyCount
End With
'Increment
ActiveSheet.Range("B7").Value = ActiveSheet.Range("B7").Value + 3
ActiveSheet.Calculate
End Sub