LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Macro to Export to a Fixed Width txt file

I'm looking to create a macro that will export my active work sheet to
a fixed width text file. Currently I import my data from Excel to MS
Access and then export from Access as a fixed width txt file. Can I do
this with a macro in Excel? I have 24 columns of information and could
have a few hundred or a few thousand rows of data. Below is the fixed
with specs I use to export from Access.


Field Name Start Width
Field1 1 69
Field2 70 13
Field3 83 11
Field4 94 48
Field5 142 18
Field6 160 14
Field7 174 14
Field8 188 14
Field9 202 14
Field10 216 14
Field11 230 14
Field12 244 14
Field13 258 14
Field14 272 14
Field15 286 14
Field16 300 14
Field17 314 14
Field18 328 14
Field19 342 14
Field20 356 26
Field21 382 127
Field22 509 64
Field23 573 71
Field24 644 1



Thanks.
 
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
Fixed Column Width Export [email protected] Excel Discussion (Misc queries) 1 March 27th 08 01:27 PM
Macro for importing a fixed width text file into the activeworkbook Koveras Excel Programming 5 November 22nd 06 12:46 PM
How to export to fixed width text file? Mike Excel Worksheet Functions 1 October 17th 05 09:30 PM
Importing Fixed Width File Macro Himansu Excel Programming 1 October 6th 05 05:35 PM
Export to fixed width text file FinChase Excel Discussion (Misc queries) 0 January 24th 05 07:25 PM


All times are GMT +1. The time now is 04:08 AM.

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"