Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 49981

Autofill contents - change position changes

$
0
0
Evening All.

I have tried searching on site and googling but have been unable to find anything that i can understand and manipulate to my needs.
My planned spreadsheet is every expanding and i am looking to find away to autofill formula.
So far i have the following which will find the final row of data and the select this row until column J. however i am unable to autofill down until final data in column K (changes each day)

Code:


Sub try2()
Range("A2").Select
Selection.End(xlDown).Offset(0, 0).Select

Range(Selection, Selection.End(xlToRight).Offset(0, -5)).Select
Selection.AutoFill Destination:=Range("A24:J38")

End Sub

So far i am only able to autofill when i stipulate exact range which is no good

any help / suggestions / links would be greatly appreciated as have been pulling my hair out with this one

Viewing all articles
Browse latest Browse all 49981

Trending Articles