+ Reply to Thread
Results 1 to 4 of 4

Save Text file as xls

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    NEW YORK
    MS-Off Ver
    Excel 2010
    Posts
    14

    Smile Save Text file as xls

    Hi,

    I have a folder in 'c:load'
    A text file with today's date is dropped into it daily, for example for today there will be a file named '11072013.txt'.
    These files are pipeline delimited(|).

    My requirement is that i want a vba code which will save these text file as excel file(.xls or .xlsx).

    I want to manually run this macro everyday for that day's text file to convert it to excel.

    Can you please help me in writing this macro?

    Please let me know if you have any further questions.

    Thanks

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

    Re: Save Text file as xls

    did you try recording a macro while loading that file ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    NEW YORK
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Save Text file as xls

    i dont think there is need to record macro, i just want to rename a text file with .xls or .xlsx in the given folder

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

    Re: Save Text file as xls

    did you try manually renaming a text file with .xls ? what about the result ?
    you said you want save as xls, not rename as xls

+ 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. Macros To Save Worksheet as New xlsx file & Save Another Worksheet As A Text File
    By KeithT in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-16-2011, 05:13 PM
  2. Save rows as text file & name file from a cell
    By nebraska in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-01-2011, 05:39 PM
  3. Save CSV file as Pipe delimited text file
    By germantim in forum Excel General
    Replies: 5
    Last Post: 08-11-2009, 12:21 PM
  4. Replies: 1
    Last Post: 05-03-2005, 06:06 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