Hi guys,
Please kindly help me to solve this problem, many thanks!!!
I wrote a simple macro to export excel texts into text files, and it works okay..
The outline of the text file is very simple, e.g.
CM100009 \ Age 15-24 \ 1
CM10000A \ Age 25-34 \ 2
CM10000B \ Age 35-44 \ 3
CM10000C \ Age 45-54 \ 4
CM10000D \ Age 55-64 \ 5
CM10000D-- 1st Part
\ Age 55-64 \ 5-- 2nd Part
Here comes my problem... I have no idea how to edit the texts in text files by VBA, such as I find the statement "CM10000D \ Age 55-64 \ 5" is wrong, I should correct it to "CM10000D \ Age 55-64 \ 6". How can I use a keyword, such as 1st Part "CM10000D", to correct the 2nd part "\ Age 55-64 \ 5" ?
Regards,
Dreamer