Got a new error, but it feels like progress! I apologize...I'm very new to VBA code, but trying to plug my way through!
As I was getting an "Object Required" error, I did some reading and got rid my "Set" here
Set x = Worksheets("Master").Range("F2")
I also changed the code to remove the quotes as Chance suggested.
Now, I've got this code:
Sub Copier2()
Dim x As Long
Dim y As Long
Dim z As Long
Dim SheetName As String
Dim Title As String
Dim Observation As String
Dim Risk As String
Dim Department As String
Dim Description As String
Dim CorrectiveAction As String
x = Worksheets("Master").Range("F2")
y = 3
z = 2
For numtimes = 1 To x
'Loop by using x as the index number to make x number copies.
'Replace "Sheet4" with the name of the sheet to be copied.
ActiveWorkbook.Sheets("Report").Copy _
After:=ActiveWorkbook.Sheets("Report")
Title = "A" & y
Range(Title).Select
ActiveCell.FormulaR1C1 = Worksheets("Master").Range(Title)
Observation = "F" & y
Range(Observation).Select
ActiveCell.FormulaR1C1 = Worksheets("Master").Range(Observation)
Risk = "K" & y
Range(Risk).Select
ActiveCell.FormulaR1C1 = Worksheets("Master").Range(Risk)
Department = "D" & y
Range(Department).Select
ActiveCell.FormulaR1C1 = Worksheets("Master").Range(Department)
Description = "H" & y
Range(Description).Select
ActiveCell.FormulaR1C1 = Worksheets("Master").Range(Description)
CorrectiveAction = "M" & y
Range(CorrectiveAction).Select
ActiveCell.FormulaR1C1 = Worksheets("Master").Range(CorrectiveAction)
y = y + 1
And, I get this error "Runtime Error 1004: Application-defined or object-defined error" at:
ActiveCell.FormulaR1C1 = Worksheets("Master").Range(CorrectiveAction)
Bookmarks