+ Reply to Thread
Results 1 to 1 of 1

Urgent Excel 2010 Macro error “1004 Method Open of Workbook Failed” and Run Time Error 9

  1. #1
    Registered User
    Join Date
    10-20-2014
    Location
    UAE
    MS-Off Ver
    Office 2010
    Posts
    1

    Urgent Excel 2010 Macro error “1004 Method Open of Workbook Failed” and Run Time Error 9

    Hi Friends,
    I am new to this forum and I really look forward to get help from experts to fix this issue for me.
    Couple of our users in office is getting the error mentioned above while running the Macro in an excel which is used to generate P.O.. In my research most of the forums were pointing out to possible file corruption. I tried repairing the excel file in question "PO_Summary" and tried copying the content to a new file and replacing the old one with the new one and so one. I also tried passing the argument CorruptLoad: xlrepairFile option also. But now I am getting error Run Time Error 9 Script Out of Range. Can some one please help me as this is very urgent and I am getting now where.

    Here is the full script. Here you can see the filed where it opens the worksheet "PO_Smmary.xlsx" (the file giving me trouble). I am unable to attach the excel with macro as its not enabled to upload. Kindly review and let me know the options. I just have a doubt in mind, that can this error be due to the file "PO_Summary" be open and in use by some user and when Macro runs its unable to open the file. If yes, can some one tell me a way to work this issue out.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Leith Ross; 10-20-2014 at 06:13 PM. Reason: Added Code Tags

+ 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] run-time error '1004' method 'open' of object 'workbooks' failed
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-03-2016, 06:24 PM
  2. Replies: 4
    Last Post: 11-15-2013, 05:03 PM
  3. Excel Macro Error - Run time error 1004 - Paste method of worksheet class failed
    By kvflynn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2012, 10:51 AM
  4. Help with a Macro-Paste method of worksheet class failed run time error 1004
    By mcneill_garr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-10-2011, 03:10 PM
  5. Replies: 4
    Last Post: 05-04-2006, 08:00 AM

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