+ Reply to Thread
Results 1 to 3 of 3

Simple Excel sheet data to .Dat format conversion

  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    359

    Simple Excel sheet data to .Dat format conversion

    Hello,

    I have data in Two Columns and i want to convert that data into .dat Text file. Can anyone help me with a VBA code to covert the data in excel sheet to a .dat text file. I have attached the sample files for reference.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Simple Excel sheet data to .Dat format conversion

    You can try:
    File > save as either:
    a. Formatted text (space delimited) creates a nicely aligned file with .prn extension that looks very much like your sample output file.
    b. Unicode text (.txt)
    c. Text (tab delimited (.txt)
    d. Text MS-DOS text (.txt)

    Choices b thru d don't align all that well with your data.

    If none of the choices work, a Macro could be written to output to a text
    file in almost any output format you want.

    Lewis

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Simple Excel sheet data to .Dat format conversion

    i dont think there is a particular format to a .dat file it depends on what the system you are uploading to requires so try as
    LJMetzger suggests or ask whoever wants it what format it should be in
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Conversion into panel data format
    By tulasiram in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-18-2013, 03:54 AM
  2. Replies: 1
    Last Post: 11-13-2012, 02:06 PM
  3. Replies: 3
    Last Post: 11-09-2009, 01:33 PM
  4. Batch conversion to excel format
    By m3site in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2008, 11:41 PM
  5. [SOLVED] Word to Excel format conversion?
    By jstephens62 in forum Excel General
    Replies: 3
    Last Post: 03-02-2005, 11:16 PM

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