vba - Excel combine multiple columns into one? -


i've seen other threads question, solutions kept crashing or not starting me. working in excel 2011 (mac) , need combine multiple columns 1 long one. columns don't have headers, , aren't contiguous (but if it's easier code for).

my columns have 20,000+ rows, many other macros i've tried keep crashing.

sub movealldatatocolumna() dim long, ws worksheet, rngcopy range, rngend range set ws = activesheet until ws.cells(1, 2).value = ""     set rngcopy = ws.range("b2", ws.cells(ws.rows.count, "b").end(xlup))     set rngend = ws.cells(ws.rows.count, "a").end(xlup).offset(1, 0)     rngend.resize(rngcopy.rows.count, 1).value = rngcopy.value     rngcopy.entirecolumn.delete loop end sub 

credit ayazgreat on other forum.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -