- vba autofill to last row
- vba autofill formula
- excel vba autofill dynamic range
- autofill vba variable range
- excel vba autofill down
- selection.autofill destination to last row
- vba autofill multiple columns
Dim i As LongWhere:
Application.ScreenUpdating = False
i = Cells(Rows.Count, "A").End(xlUp).Row
Selection.AutoFill Destination:=Range("A2:A" & i)
Range("A2:A" & i).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
i = number of rows to autofill
Note:
- Range("A2:A" & i). Begins with A2. Change :A" to your desired column if you have multiple cells
- The operation will perform autofill then copy the autofill range/ areas and then copy paste special values. You may remove this if you wish to keep the formula
No comments:
Post a Comment