+ Reply to Thread
Results 1 to 2 of 2

READ from TXT file BUG

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    Villach
    MS-Off Ver
    MS 2010
    Posts
    1

    READ from TXT file BUG

    Hello all,

    I recently joined this forum and I am new within VBA.
    My question concerns the read out from a TXT file. The file consists on a bunch of hexadecimal data set in rows, i.e.:

    A8
    09
    BC
    ....

    Then, I tried this function:

    Please Login or Register  to view this content.
    The code is working, but sometimes I got this error:
    Run-time error '62': Input past end of file
    The error appears at this line:
    Please Login or Register  to view this content.
    I set the function several times in my code with a FOR loop. It is working, but after a while the bug appears.
    I would be grateful if anyone could help me or suggest another way to read the TXT file

    BR
    Last edited by ander123; 09-23-2015 at 02:33 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: READ from TXT file BUG

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ 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. [SOLVED] Checking to see if a file has been opened in Read/Write or Read Only
    By brokenbiscuits in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 09:16 AM
  2. Read-only file on server. How many people can read at once?
    By Xx7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 12:10 AM
  3. Replies: 5
    Last Post: 06-26-2012, 02:00 PM
  4. Skip The Read Only Prompt When I Open A File - Excel, Open it read-write instead.
    By harry_1805 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2012, 02:14 AM
  5. [SOLVED] Read whole file,Match the headers based on specific condition & write to text file
    By macromaniac in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-07-2011, 06:37 AM
  6. Using ADO to read closed file does not read formulas
    By treyr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-09-2010, 12:26 PM
  7. [SOLVED] I have a read only xl file, I need it to be read and write
    By drama queen in forum Excel General
    Replies: 3
    Last Post: 06-30-2006, 07:30 PM
  8. How can a file be converted from Read-Only to Read/Write
    By Jim in Apopka in forum Excel General
    Replies: 2
    Last Post: 11-19-2005, 01:00 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