Results 1 to 15 of 15

Create txt file from excel sheet

Threaded View

  1. #4
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Create txt file from excel sheet

    Here's another..
    Change file path to suit..
    Private Sub CommandButton1_Click()
      Dim Rng As Range
            With CreateObject("Scripting.FileSystemObject").CreateTextFile("c:\April.txt", True)
                Set Rng = Cells(1, 1).Resize(Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row, 1)
                .writeline Join(Application.Transpose(Rng), vbCrLf)
            End With
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] One Report, create multiple sheets, save each sheet in a seperate excel file
    By sammymalta in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-04-2013, 07:12 AM
  2. Create a *.txt file from an excel sheet
    By Woodbags in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2013, 08:36 AM
  3. Filter, copy filtered data into another sheet, create a file of that sheet..
    By titushanke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-17-2012, 02:26 PM
  4. Replies: 3
    Last Post: 09-30-2011, 04:35 AM
  5. [Macro excel] How to create and export a sheet into a *.inp (or *.txt) file
    By MrKermit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2006, 03:30 AM

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