Adding Columns......

nolc

New Member
Joined
May 1, 2002
Messages
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?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try using:

Data>Text to Columns

This will split whatever is in the selected cell into its own cell in its own column.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top