Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Convert Text String to Cells
A newbie question: What's a good way to format and process a text string to get it into a row of cells? Is there an excel method that parses strings into cells?
My excel macro gets a string from another application. The string is to be parsed into multiple cells within one row. I control the othe application, so I can build the string however I want. Should I use CSV? XML? Just put vbCrLf between data items? Right now the string I'm parsing is CSV: "item1","item2","etc.." My macro has no idea how many items to expect - I just want it to put them in consecutive cells in the current row. -jcf |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Convert Text String to Cells
highlight the text and click the data menu and choose text to columns,
follow the prompts for your situation. "John Ford" wrote in message ... A newbie question: What's a good way to format and process a text string to get it into a row of cells? Is there an excel method that parses strings into cells? My excel macro gets a string from another application. The string is to be parsed into multiple cells within one row. I control the othe application, so I can build the string however I want. Should I use CSV? XML? Just put vbCrLf between data items? Right now the string I'm parsing is CSV: "item1","item2","etc.." My macro has no idea how many items to expect - I just want it to put them in consecutive cells in the current row. -jcf |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Convert Text String to Cells
John,
Under the Data menu is an option for Text to Columns. Manually copy and paste your text into a cell and play with this option. After you get used to it - record a macro, than modify the recorded macro to suit your needs. steve "John Ford" wrote in message ... A newbie question: What's a good way to format and process a text string to get it into a row of cells? Is there an excel method that parses strings into cells? My excel macro gets a string from another application. The string is to be parsed into multiple cells within one row. I control the othe application, so I can build the string however I want. Should I use CSV? XML? Just put vbCrLf between data items? Right now the string I'm parsing is CSV: "item1","item2","etc.." My macro has no idea how many items to expect - I just want it to put them in consecutive cells in the current row. -jcf |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Convert Text String to Cells
Hello? My macro is a VBA program that gets the string from another application - this isn't a user pointin' and clickin'. ;-)
HOWEVER... your reply lead me to do the old "record a macro and see how it works" techique. Sure enough, there's a myRange.TextToColumns method which it looks like it will do the trick. Thanks, -jcf "Peter Bobrowski" wrote in message ... | highlight the text and click the data menu and choose text to columns, | follow the prompts for your situation. | | "John Ford" wrote in message | ... | A newbie question: What's a good way to format and process a text string to | get it into a row of cells? Is there an excel method that parses strings | into cells? | | My excel macro gets a string from another application. The string is to be | parsed into multiple cells within one row. I control the othe application, | so I can build the string however I want. Should I use CSV? XML? Just put | vbCrLf between data items? | | Right now the string I'm parsing is CSV: | | "item1","item2","etc.." | | My macro has no idea how many items to expect - I just want it to put them | in consecutive cells in the current row. | | -jcf | | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert times to text string | Excel Worksheet Functions | |||
Convert text string to IP address | Excel Worksheet Functions | |||
cannot convert text string into value | Excel Worksheet Functions | |||
Convert numbers to text string | Excel Discussion (Misc queries) | |||
Need to convert text string to seperate cells | Excel Worksheet Functions |