Hi.
I have some cells in my work that have more then on line, like whem you type Alt+Enter, for example:
Cell A1 = abababab
bcbcbccbc
fgfgfgfgfgfg
I need to extract each line and put in a ListBox, how can I do that?
Regards,
Manoel
Hi.
I have some cells in my work that have more then on line, like whem you type Alt+Enter, for example:
Cell A1 = abababab
bcbcbccbc
fgfgfgfgfgfg
I need to extract each line and put in a ListBox, how can I do that?
Regards,
Manoel
Hi,
Unfortunately I've not got access to Excel just at the moment but there are two approaches you could take. Either use some helper columns to search the string for the 1st, 2nd, 3rd etc. occurrences of the code 10 (enter character) and then use string slicing functions to create those helper column values and load to your list boxes, or use some similar string slicing technique with a VBA macro.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
You dont say where you Listbox is, Im assuming its on a userform or its a Active X Control Listbox
Please Login or Register to view this content.
Thanks,
Mike
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
Select Thread Tools-> Mark thread as Solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks