Macro - Update Info and Print out

SaiChu

New Member
Joined
Feb 20, 2012
Messages
17
Hello Mr Excel,
I recorded a macro to print individual scorecards for six people. I have to get the name into cell C12 to update the information and then print the scorecard. Am I able to automate this macro to allow it to print more than six names and stop at the end of the last name (stop at a blank cell)?

Thank you,
SaiChu


Sub Print_Scorecard()
'
' Print_Scorecard Macro
'

'
Range("C12:F12").Select
ActiveCell.FormulaR1C1 = "=R[-8]C[17]"
Range("C13:F13").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Range("C12:F12").Select
ActiveCell.FormulaR1C1 = "=R[-7]C[17]"
Range("C13:F13").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Range("C12:F12").Select
ActiveCell.FormulaR1C1 = "=R[-6]C[17]"
Range("C13:F13").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Range("C12:F12").Select
ActiveCell.FormulaR1C1 = "=R[-5]C[17]"
Range("C13:F13").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Range("C12:F12").Select
ActiveCell.FormulaR1C1 = "=R[-4]C[17]"
Range("C13:F13").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False
Range("C12:F12").Select
ActiveCell.FormulaR1C1 = "=R[-3]C[17]"
Range("C13:F13").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
IgnorePrintAreas:=False

End Sub
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top