JeezisPope
New Member
- Joined
- Sep 7, 2022
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hey guys,
I'm new at programming with vba and I have this annoying problem where I want to Autofill to Last row of data, but i don't know how. I have to select from A4 to K4 and then Autofill it, but the amount of data is indefinite...
I have this code so far, so if anyone can help pls, would be great... I do a little researching, and i found some ways to do it, but i couldn't understand... Help pls
Sub lastrow()
Range("A4:K4").Select
Selection.AutoFill Destination:=Range("A4:K" & Range(Rows.Count, "K").End(xlUp).Row)
End Sub
I'm new at programming with vba and I have this annoying problem where I want to Autofill to Last row of data, but i don't know how. I have to select from A4 to K4 and then Autofill it, but the amount of data is indefinite...
I have this code so far, so if anyone can help pls, would be great... I do a little researching, and i found some ways to do it, but i couldn't understand... Help pls
Sub lastrow()
Range("A4:K4").Select
Selection.AutoFill Destination:=Range("A4:K" & Range(Rows.Count, "K").End(xlUp).Row)
End Sub