Excel VBA - Split cell with multiple lines into rows -
i have workbook full cells have linebreaks (entered via alt + enter) in them, have them separated individual rows again... cells in column a.
each line in cell has bullet point (eg. "* ") front, serve beacon excel script break line @ point. have code me that? have no clue how go this...
sample picture attached.
thanks
you can use split chr(10) or vblf
dim cell_value variant dim counter integer 'row counter counter = 1 'looping trough column define max value = 1 10 'take cell @ time cell_value = thisworkbook.activesheet.cells(i, 1).value 'split cell contents dim wrdarray() string wrdarray() = split(cell_value, vblf) 'place values b column each item in wrdarray thisworkbook.activesheet.cells(counter, 2).value = item counter = counter + 1 next item next
no have array place each row different cell
Comments
Post a Comment