![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Minneapolis, MN
Posts: 9
|
I'm trying to programmatically grab data from a string which is located in xlsheet.Range("A" & i) row by row. With Mid, Instr, and Right split up the line of data where be needed and insert Columns to divide the string. Any ideas?
My original approach was to grab the first section of data from the string, insert a column (Shift:=xlToRight), then paste. Once I've grabbed all the data I would delete the last column holding the original string. Is there any easier way? |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Posts: 85
|
Try using:
Data>Text to Columns This will split whatever is in the selected cell into its own cell in its own column. |
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Location: Minneapolis, MN
Posts: 9
|
The line of code is? :
Data>Text to Columns |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Posts: 85
|
No. Select the cell you wish to parse. Then go to the top of Excel and look for:
"Data" then choose "Text to Columns" then follow the wizard that follows. You might want to record this if you are looking for the code. |
|
|
|
|
|
#5 |
|
New Member
Join Date: May 2002
Location: Minneapolis, MN
Posts: 9
|
I hear ya...I'll see if that helps.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|