andy7172289
Technical User
Hi People,
I am trying to auto fill (Drag down) a row of formula's on one tab to a specific row number which is located in Cell (O7) from sheet 'RR S&C'.
This is what I have so far, but an error keeps coming up on the highlighted text in yellow. Can anyone show me where I'm going wrong please?
Sub Variants()
Application.ScreenUpdating = False
'---------------------------------------------------
Sheets("RR S&C").Range("O7").Copy
Range("O8").Select
Range("O8").PasteSpecial xlPasteValues
Sheets("RR PL").Select
Range("L7").Copy
Range("L8").Select
Range("L8").PasteSpecial xlPasteValues
Sheets("Validation").Select
Range("M7").Copy
Range("M8").Select
Range("M8").PasteSpecial xlPasteValues
' ----------------------------------------------------
Sheets("RR S&C").Select
Range("O8").Select
Value = Range("O8")
[highlight #FCE94F] Range("A2").AutoFill Destination:=Range("A2:L" & MyValue), Type:=xlFillSeries[/highlight]
'----------------------------------------------------------------------------------
Application.ScreenUpdating = True
End Sub
Thanks in advance!
I am trying to auto fill (Drag down) a row of formula's on one tab to a specific row number which is located in Cell (O7) from sheet 'RR S&C'.
This is what I have so far, but an error keeps coming up on the highlighted text in yellow. Can anyone show me where I'm going wrong please?
Sub Variants()
Application.ScreenUpdating = False
'---------------------------------------------------
Sheets("RR S&C").Range("O7").Copy
Range("O8").Select
Range("O8").PasteSpecial xlPasteValues
Sheets("RR PL").Select
Range("L7").Copy
Range("L8").Select
Range("L8").PasteSpecial xlPasteValues
Sheets("Validation").Select
Range("M7").Copy
Range("M8").Select
Range("M8").PasteSpecial xlPasteValues
' ----------------------------------------------------
Sheets("RR S&C").Select
Range("O8").Select
Value = Range("O8")
[highlight #FCE94F] Range("A2").AutoFill Destination:=Range("A2:L" & MyValue), Type:=xlFillSeries[/highlight]
'----------------------------------------------------------------------------------
Application.ScreenUpdating = True
End Sub
Thanks in advance!