Text File help

traff1982

Board Regular
Joined
May 21, 2007
Messages
62
Hi,

I'm hoping someone can help me or point me in the direction of where i could find some.

I have exported a lot of data from a database into a text file. within the database, the data was held on individual records but has come across onto one text file. All of the data has come across but there is a problem with some of it. On some of the records, there is data that is in the correct location but has come up as ||||||||. The 8 characters are the correct length but when importing the data from text file into the new database, it cannot read beyond the ||||||||. I need to delete the |||||||| but also keep the 8 spaces so that the data beyond is kept in the correct position.

Is there any way of doing this via macros or am I in for a very boring afternoon?

Many thanks for any help.

Marc
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,225,358
Messages
6,184,497
Members
453,236
Latest member
Siams

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