I am trying to fill down to a dynamic row number that is calculated in another sheet. When I use the recorder I get this but I need it to fill down from A2:x within the current sheet (this is the dynamic field that needs to point to the row number to end on such as X1160). What is the code to accomplish this?
Range(Selection, Selection.End(xlToRight)).Select
'The cell in bold needs to be updated to X & the number in a different sheet called "Instruction" calculated in B2 of that sheet
Selection.AutoFill Destination:=Range("A2:X1060"), Type:=xlFillDefault
Range("A2:X1060").Select
Does this make sense? Any help is appreciated.
Range(Selection, Selection.End(xlToRight)).Select
'The cell in bold needs to be updated to X & the number in a different sheet called "Instruction" calculated in B2 of that sheet
Selection.AutoFill Destination:=Range("A2:X1060"), Type:=xlFillDefault
Range("A2:X1060").Select
Does this make sense? Any help is appreciated.