vba - How to concatenate 2 cells at the top of a filtered list? (EXCEL macros) -
so i've searched hours now, , can't seem find solution problem. have list of 13000+ rows, have auto filtered down 200, want that, lets assume, top of list shows a1 straight a28 because of filter. want text in cell a28 , b28 concatenated , put in cell j28. able manually easily, when record actions macro code comes up
sub concat() ' ' concat macro ' ' activecell.formular1c1 = "=rc[-9]&rc[-8]" range("j28").select selection.filldown end sub
now i'm not sure
"=rc[-9]&rc[-8]"
means when run macro not result in want.
if unclear on problem, apologize in advance need help.
thanks!
varun
this work, have turn off filter first:
sub filldown() dim ws excel.worksheet dim lastrow long set ws = activesheet ws lastrow = ws.range("a" & .rows.count).end(xlup).row .range("j2:j" & lastrow).formular1c1 = "=rc[-9]&rc[-8]" end end sub
i'm not clear why don't turn off filter , manually copy down formula far necessary.
Comments
Post a Comment