+ Reply to Thread
Results 1 to 4 of 4

Input Text file Missing Delimiters after Export

  1. #1
    Registered User
    Join Date
    11-18-2012
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    10

    Input Text file Missing Delimiters after Export

    Hi all,

    I wrote a macro for importing TEXT(*.txt) files to Excel files and the macro ran fine.

    But after running the Macro all my Input files were missing Delimiters and the empty file names were showing (1 KB) in size causing no reusability of them.


    Please help me ...

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Input Text file Missing Delimiters after Export

    karthik123qwe,

    I often use this for importing text files:
    Please Login or Register  to view this content.


    For example, to import tab delimited text files I would call that with:
    Please Login or Register  to view this content.
    Last edited by tigeravatar; 12-21-2012 at 02:57 PM. Reason: Updated code to allow for both .txt and .csv files to be selected
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    11-18-2012
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Input Text file Missing Delimiters after Export

    hi tigeravatar,

    thanks for helping out, still I cant sort out the issue . What i need is, my input file shouldnt be affected by my macro. is there any way to remove connection through macro:

    here is my code below,

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-18-2012
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Input Text file Missing Delimiters after Export

    Hi,

    I solved it, the problem was that the temporary Worksheet was closed with changes, hence i discarded the changes by tWB.Close SaveChanges:=False.

    thanks all
    Last edited by karthik123qwe; 12-24-2012 at 07:17 AM. Reason: [solved]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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