+ Reply to Thread
Results 1 to 3 of 3

Exporting from excel to text file

  1. #1
    Registered User
    Join Date
    09-08-2011
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile Exporting from excel to text file

    Hi!

    I have been trying to figure out how to export data in excel to a text file. I know it can be saved as a text file but the file needs to be in the following layout:

    Column name: Check Number
    Start Position: 1
    Length : 8
    Column Name: Amount
    Start Position: 9
    Length: 14
    Column name: Date
    Start Position: 23
    Lenth: 8
    Date Format: MMDDYY
    Column Name: Payee
    Start Position: 31
    Length: 45

    From what I've been reading, a macro needs to be created/ input to get this done.

    Any help would be greatly appreciated.

    Thank you!
    Last edited by ivannette1; 09-08-2011 at 12:09 PM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Exporting from excel to text file

    Hi,

    Try just setting the column widths to the number of characters that each field should be and then save it as a .prn format. Should give you what you require.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    09-08-2011
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Exporting from excel to text file

    Thank you for the suggestion.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1