How do I parse for fields separated by a carriage control within a cell?

V

veritasca

Inside a cell, there are many filenames separated by a carriage return.
I have to extract each filename and write it out to a text file. If I
use InStr function to find the carriage return value, what is the value
that I should use? I know Alt+Enter is used to cause the carriage
return (cause the cell's content to wrap within the cell). So:
Pos = Instr(CellText, Alt+Enter), is that OK?

** Posted via: http://www.ozgrid.com
Excel Templates, Training, Add-ins & Business Software Galore!
Free Excel Forum http://www.ozgrid.com/forum ***
 
G

Gord Dibben

Chr(10) or Chr(13)

Manually, Data>Text to Columns and ALT + 0010 in the Delimited by "Other" box
will work to split the data to separate cells.

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top