Results 1 to 9 of 9

Runtime error '53': File not found

Threaded View

  1. #1
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Exclamation Runtime error '53': File not found

    Hello,

    This thread was born out of my frustration and exhaustion of trying to find out why my macro (which is supposed to loop through a series of text files) would not work. Even worse, it would work once and then stop working. The constant error message was Runtime error '53': File not found. Online searching for a quick fix, repairing my registry, re-installing Office, and trying the same file on multiple different computers did not resolve the issue. As a last ditch attempt, I tried something desperate... I saved my code in text file as unicode so that it would only save the letters, numbers, etc without anything else and opened a fresh new workbook and pasted it. All of a sudden, the problems went away. I tried this new file on multiple computers (all running Office 2007 under Windows XP) and it worked just fine.

    If I stopped here then it would be a happy ending, but unfortunately I ran the macro on several computers running Office 2007 running under Windows Vista, and sure enough the problem re-appeared: Runtime error '53': File not found.

    My question is: Has anyone had this problem with Vista before when trying to loop through text files, or any othe file type for that matter? I know the files are there because I see them and I can open them, and if I replace the loop with the file path or use Application.GetOpenFilename("Text Files,*.txt"), it works and so the macro can see and open the files, but it just can't do it with the loop.

    Any suggestions? (And sorry for the long post, but if I can help just one person to not to have to go through the misery that I went through, then it will have been worth it)

    abousetta

    P.S. attached is the new file that works under XP, but not vista and a text file that contains the needed material
    Attached Files Attached Files
    Last edited by abousetta; 04-30-2010 at 12:21 PM.

Thread Information

Users Browsing this Thread

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

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