Hi,
Here you go. I have tried to explain each step.
You can set it to run when you press print by setting the following code in ThisWorkbook in VBA
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Call PrintWorkouts
End Sub
Sub PrintWorkouts()
Dim ws As Worksheet, cell As Range 'Define variables
Set ws = ActiveSheet 'Set the active sheet as the one to print
With ws.PageSetup 'Ensure the print area and page setup is correct
.PrintArea = ws.Range("A1").CurrentRegion.Address
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
For Each cell In Sheets("Data").Range("A2:A21") 'Loop through A2 to A21 on sheet data
Sheets("Week 1").Range("A1").Value = cell.Value 'Place value into Week 1 A1
Calculate 'Ensure that formulas recalculate
ws.PrintOut 'Print Worksheet
Next 'Loop to the next Athlete
End Sub
Let me know if you need any more help.
Bookmarks