VBA to convert to Txt file after setting the data to requirement

Emmily

Well-known Member
Joined
Oct 5, 2008
Messages
676
Hi, we have an accounting software which only accepts data in txt. I need VBA to produce data as shown in the second screen shot, the first screen shot is what the data currently looks like, i need the code to produce the second screen shot and then create a copy of worksheet and save as txt. I will then upload this file.

The date in B2 or C2 is only there for you to see in my real data the date has named range rngDate.

Excel Workbook
BC
2Date20/03/2011
3
4
5AJAJE48.11
6ALLOVER18.56
7AVILA27.85
Sheet1


Excel Workbook
ABCDEFG
2Date20/03/2011
3
4
520/03/2011AJAJE/AATBANK0048.11"Imported Interest Charge, Client Code=AJAJE"
620/03/2011ALLOVER/AATBANK0018.56"Imported Interest Charge, Client Code=ALLOVER"
720/03/2011AVILA/AATBANK0027.85"Imported Interest Charge, Client Code=AVILA"
8
Sheet1
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
How would i get VBA to produce Col G especially getting the client code?

<table border="1" cellpadding="0" cellspacing="0"><tbody><tr><td style="text-align: right;">20/03/2011</td><td>AJAJE/AAT</td><td>BANK</td><td style="text-align: right;">0</td><td style="text-align: right;">0</td><td style="text-align: right;">48.11</td><td>"Imported Interest Charge, Client Code=AJAJE"</td></tr></tbody></table>
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,267
Members
452,902
Latest member
Knuddeluff

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