Text to Columns (60 columns)

luckycharm1668

New Member
Joined
Jun 30, 2008
Messages
24
Hi, I am trying to text to column 60 columns, sometimes more. Could someone please help? Is there a code that I can write? I tried to record, but it's not working correctly. I also need to Unprotect the sheet and workbook, and insert 4 lines. Your assistance will be greatly appreciated.

Thank you.:mad:
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi Erik, I deepy appreciate your great help on the VBA code that you created for me. But for some reason, I am getting stuck and have to debug at the line arr(r, 1) = --arr(r, 1). And if I enable the 'On Error Resume Next, seems like the code doesn't do anything.
Since I'm such a newbie at this VBA stuff :confused:, I'll need to go through each line of the code by using F1 VBA help and see if I can understand what each line is doing. It's going to take me a bit of time to disect each line. I'll probably need to take a course the have better understanding of Excel VBA.:(

Thanks again for all your assistance.
Wishing you a wonderful weekend.
 
Upvote 0
you should really take more care of being clear
you have sent me a file, but what code are you runnning on it?
did you take my advice and run some code on a single column?

how can we check errors if we do not know what you used and what data you are running the code on?

So please display your code & one column of data.
have a nice weekend,
Erik
 
Upvote 0
you have sent me another file

I see the code is still
Code:
'EDIT
'put all columns in the array
ColArr = Array(2, 4, 7)
FormatArr = Array("General", "0.00", "0.00%")
'define first row
Const FR = 2
'END EDIT
I told you at least once that you need to update the code

in this case the code will replace columns 2, 4 and 7
the format will be general for the 2nd, etcetera

what is the first row, not 2 I guess!
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,827
Members
449,470
Latest member
Subhash Chand

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