+ Reply to Thread
Results 1 to 2 of 2

Thread: Save .txt to Excel

  1. #1
    Forum Contributor
    Join Date
    09-18-2008
    Location
    Scotland
    Posts
    152

    Save .txt to Excel

    I have a .txt file that I want to open/save to excel using VBA in Access (apologies!!)

    I know its long winded but we have an existing VBA script in Access that outputs a .txt file which is delimited by a semicolon (
    All Im looking for is some code that saves this file into an excel file at location C:\File\excel.xls (overwriting the existing data and if possible starting on the 2nd row leaving the column headings in place)

    Attached is a sample of the .txt file.

    Thanks in advance for all replies
    Attached Files Attached Files
    Last edited by guerillaexcel; 04-07-2011 at 10:51 AM. Reason: Changed title

  2. #2
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,155

    Re: Save .txt to Excel

    Please post the code for the existing export as a text file so that we can see what type of object you are exporting. ie. are you exporting from a table, query or report? Does it have a name?, etc. What version of Access are you using? What version of Excel do you want exported to?

    Alan

+ 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.2.0