Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Exporting to a CSV file from multiple worksheets

I'm trying to set up an export to a CSV file that has the following
format:

File Header Record
Employee 1 Header Record
Transaction Record 1
Transaction Record 2
etc
Employee 1 Header Record
Transaction Record 1
Transaction Record 2
etc

The file layout example is:

MIFV02.00\EXAMPLE\DDMMYYYY\\\\D
EMP\\\\\
\TS\\\\\\
\TL\\\\\\\
\TN\\\\\\\\\\

I've already sorted out how to set up the worksheets so that I have a
separate file header and employee sheets
and can export the different ranges individually(!). (Because the
different transaction types need different numbers of fields, I've set
the sheets up with different sections for each of the transaction
types)

I'm not very good at understanding Looping though, and need some help
figuring out how to:

- write the header out
- go to the first employee sheet
-write the employee header out
-write the transactions out
-go to the next employee sheet, etc


I also don't understand how to put a delimiter before the first field
in a transaction line ,e.g., \TS\

I know it's a lot to ask, but I'm sure there are some geniuses out
there who think that this is a breeze!!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems printing/exporting multiple worksheets with Excel 2007 cwilder Excel Discussion (Misc queries) 0 April 14th 08 06:06 PM
Exporting data from ms-access database to multiple worksheets using ASP sridevi Excel Programming 0 May 11th 05 11:11 AM
Exporting multiple worksheets as CSV Mike O[_3_] Excel Programming 0 February 25th 04 06:05 PM
Exporting multiple worksheets as CSV Joe Sheehan Excel Programming 3 February 24th 04 02:38 PM
Exporting from multiple worksheets to single text file Chris Dunigan Excel Programming 3 September 16th 03 02:48 PM


All times are GMT +1. The time now is 08:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"