Monbellydancer
New Member
help. how do I print an employee timesheet with employee individual name without having to print one at a time please?
Hi. I have attached a sample. I have Excel sheet with month. Where it says name I will insert employee name but just want to generate to print automatically with all employee names without having to insert a name at a time and print a sheet for each employee. Hope it makes sense
It is customary to wait at least 24hrs before bumping. Thx ( BTW your thread title could be more explicit)Thanks any help appreciated
Sub PrintShiftsPreview()
Dim rCl As Range
Dim rRng As Range
With Sheet1
Set rRng = ActiveWorkbook.Windows(1).Selection.Rows
For Each rCl In rRng
With Sheet2
.Cells(1, 1).Value = rCl.Value
.PrintPreview
End With
Next rCl
End With
With Sheet2
.Cells(1, 1).Value = ""
End With
End Sub
Sub PrintShiftsAll()
Dim rCl As Range
Dim rRng As Range
With Sheet1
Set rRng = ActiveWorkbook.Windows(1).Selection.Rows
For Each rCl In rRng
With Sheet2
.Cells(1, 1).Value = rCl.Value
End With
Next rCl
End With
With Sheet2
.Cells(1, 1).Value = ""
End With
End Sub