I am seeking help to enhance the existing “PrintScorecard” macro in the attached sample workbook with a conditional routine that evaluates the “Course” and number of “Tee Times” found in cells D4 and D5 of the Weekly_Scoreboard worksheet. The above macro has been assigned to the Print Scorecards command button on the Weekly_Scoreboard worksheet.
I would like for the macro to determine which course scorecard template worksheet to copy data from based upon the contents of Weekly_Scoreboard!D4. There are two worksheets named New Course Scorecard Template and Old Course Scorecard Template to which I am expecting the macro to copy names and handicaps to certain fields in each respective template.
In addition, I would like the macro to perform a loop of the copy subroutine based upon the value in Weekly_Scoreboard!D5 which contains a value that represents the number of tee times, or groupings, for this game. The first pass of the copy loop would be to copy the player names and handicaps to each respective scorecard template for players 1-4. The second pass of the copy loop would copy the data for players 5-8 and the third pass to copy data for players 9-12, and so on based upon the value in Weekly_Scoreboard!D5.
The source data for the copy subroutine comes from the Lists & Tables worksheet and may be follow the cell addresses contained within the PrintScorecard macro assigned to the Weekly_Scoreboard worksheet.
Obviously I used the macro recorder to create the PrintScorecard macro so I doubt it’s the most efficient way to handle this request, so I am open to suggestions on how to accomplish what I want and improve upon the macro where possible. Thank you in advance for any help or assistance you can offer!
Bookmarks