Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to export data into a sequential text file. 2

Status
Not open for further replies.

StevieB01

Technical User
Apr 13, 2007
5
GB
I need to export data into a sequential text file. Does anyone know how of some vba code that would do this?

Eg of file format.

Header Block
Text Block
Trailer Block
Enf of File Block



eg of a File with 2 records.

Header = ddmmccyy
Txn Ref = ABC001
Currency= GBP
Amount = 125.30
Trailer = EOT
Txn Ref = ABC002
Currency= USD
Amount = 99.30
Trailer = EOT
End of File = EOF
 
Have a look at FileSystemObject and Open Statement. One or other should suit.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top