R
ryguy7272
I guess I’m not going about this the right way. I’m trying to find the last
used row, based on Column Z, then fill-down, the contents in A and 1 row
above to Z and 1 row above. For instance, if Z17 has data in it, I want to
copy down A16:Z16 into A17:Z17.
Here’s the code I’m trying:
Dim dynarow As Long
dynarow = Worksheets("Worksheet").Cells(Rows.Count, "Z").End(xlUp).Row
Selection.AutoFill Destination:=Range("A" & dynarow & ":Z" & dynarow + 1),
Type:=xlFillDefault
I keep getting the following error: ‘AutoFill method of range class failed’
I guess the range is not defined properly.
I’m completely open to suggestions as to how to do this.
Thanks!
used row, based on Column Z, then fill-down, the contents in A and 1 row
above to Z and 1 row above. For instance, if Z17 has data in it, I want to
copy down A16:Z16 into A17:Z17.
Here’s the code I’m trying:
Dim dynarow As Long
dynarow = Worksheets("Worksheet").Cells(Rows.Count, "Z").End(xlUp).Row
Selection.AutoFill Destination:=Range("A" & dynarow & ":Z" & dynarow + 1),
Type:=xlFillDefault
I keep getting the following error: ‘AutoFill method of range class failed’
I guess the range is not defined properly.
I’m completely open to suggestions as to how to do this.
Thanks!