+ Reply to Thread
Results 1 to 3 of 3

VBA Code convert data to tab delimited and write data to text file | Not Working

  1. #1
    Registered User
    Join Date
    06-03-2015
    Location
    USA
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    12

    VBA Code convert data to tab delimited and write data to text file | Not Working

    I have this VBA code to create a text file, convert my data to tab delimited, and then write the data to the file. This code is added at the end of an 80 line macro that formats the document to be identical to another in formatting to be compared as .txt files through Notepad++.

    Everything is working properly except actually writing the data to the file. I see that the file has been interacted with because of the last saved date and time, but it is not writing any of the data.

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 07-06-2015 at 04:42 PM. Reason: Added Code Tags

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: VBA Code convert data to tab delimited and write data to text file | Not Working

    Hi, lbl159,

    I would swap some code lines and alter one of them slightly. Please try
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: VBA Code convert data to tab delimited and write data to text file | Not Working


    Hi,

    why not using SaveAs method ?

+ 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 code to convert excel file to tab delimited .txt
    By lbl159 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2015, 03:11 AM
  2. Convert Pipe Delimited Text File into CSV File
    By sachin29feb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2012, 10:47 AM
  3. Macro to convert a mutiple sheet workbook to tab delimited text or fixed width text file
    By chandra 2185 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-05-2012, 10:29 AM
  4. Write Sheet to text file, comma delimited.
    By Screamtruth in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2010, 06:16 AM
  5. writing data to a tab delimited text file?
    By festdaddy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2005, 05:45 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