+ Reply to Thread
Results 1 to 7 of 7

Importing a TXF file and converting to XLS(m)

  1. #1
    Registered User
    Join Date
    12-29-2011
    Location
    San Diego, Ca.
    MS-Off Ver
    Excel 2007
    Posts
    60

    Question Importing a TXF file and converting to XLS(m)

    I have a TXF file, typically generated by accounting software such as Quicken. I know how to convert this to an XLS file in Excel (simply open all files *.*, which takes you to the text import Wizard) but is there any way to do this through VBA?
    Thanks

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Importing a TXF file and converting to XLS(m)

    attach please a sample file for testing, do you want convert all the files in a folder ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    12-29-2011
    Location
    San Diego, Ca.
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Importing a TXF file and converting to XLS(m)

    Here is a very short TXF file to play with. The file name Test file had to be changed to a DOC file to be able to upload it. Just change the Doc to TXF to process.

    This can be converted to Excel xls file by opening the file in Excel, choose all files *.* to display it, and then for the the next 2 displayed menus hit 1) next, and then 2) on the next menu move the vertical arrowed lines to the right to put everything in column a. Then select Next and Finish.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-29-2011
    Location
    San Diego, Ca.
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Importing a TXF file and converting to XLS(m)

    Sent wrong file. Try this one. And yes, I would like to convert 2-3 files in a folder.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Importing a TXF file and converting to XLS(m)

    Please Login or Register  to view this content.
    Last edited by patel45; 01-19-2014 at 06:47 AM.

  6. #6
    Registered User
    Join Date
    12-29-2011
    Location
    San Diego, Ca.
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: Importing a TXF file and converting to XLS(m)

    Thanks Patel. It will take me some time to digest all of this as I am a relative newbie and doing my best to learn VBA. I appreciate the time you put into this.

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Importing a TXF file and converting to XLS(m)

    I'm sorry, this code is not easy to understand, but it was already done.
    it uses dos commands for scanning folder

+ 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. VBA Importing Text File makes the file longer to load everytime
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2014, 11:26 AM
  2. Importing a data from a text file - user-defined file
    By DaveSev in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2013, 07:02 PM
  3. [SOLVED] importing text file into excel file using macro
    By ananthbulusu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2013, 04:08 PM
  4. Importing a text file, and converting specific columns
    By AppSupportKarl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2012, 01:47 PM
  5. Importing text file, only option to edit existing file
    By smokey99 in forum Excel General
    Replies: 8
    Last Post: 04-26-2006, 04:08 PM

Tags for this Thread

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