Excel VBA select new usedrange portion of a column -
hi all.
i need please.
i want apply formula new rows i've added. have line of code use full set of data, i'm not sure how modify it, or if there better way it.
i'm bit out of league line of code, understand it's doing didn't write it.
sheets("closed loop").range(varpastepos).offset(0, 2).resize(activesheet.usedrange.rows.count - 1, columnsize:=1).formular1c1 = "my formula"
varpastepos
position new data pasted, in case $f$28
any ideas?
use range().filldown
extend pre-existing formula.
dim lastrow long lastrow = range("f" & rows.count).end(xlup).row range("a2", "a" & lastrow).filldown
you can filldown
multiple columns @ once this:
range("a2", "d" & lastrow).filldown
you can in 1 line this:
range("a2", range("f" & rows.count).end(xlup)).filldown
Comments
Post a Comment