+ Reply to Thread
Results 1 to 5 of 5

Run time error (Err=9) when saving file using saveas

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Run time error (Err=9) when saving file using saveas

    I have the following file designed to save a file. I have NO idea why this occurring but i get a run time err #9.

    Any ideas?


    Please Login or Register  to view this content.
    Last edited by welchs101; 03-24-2012 at 10:51 AM.

  2. #2
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Run time error (Err=9) when saving file using saveas

    i tried uploading my macro......but it would not load .....its not taht big only about 140k.......any ideas?

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Run time error (Err=9) when saving file using saveas

    i zipped the macro and included one input file.....just make a copy of the input file so that you have two input files total. running the macro should be self explanatory but just select the directory you put the two input files in and then select the directory where you want the output saved to.

    i would really appreciate some help on this one.......i am really frustrated.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Run time error (Err=9) when saving file using saveas

    does anyone have any ideas?

  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Run time error (Err=9) when saving file using saveas

    ok, i figured it out and it was by luck that i did......i happen to review ALL the code again because i knew this should work and i noticed that in another procedure i was saving this same file.........so i commented out the following code from the the "process_all_files_in_directory" and it worked.

    Please Login or Register  to view this content.

    i dont have a clue why this matters......but then again there is ALOT that i dont know about vba / excel programming.

+ Reply to Thread

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