+ Reply to Thread
Results 1 to 3 of 3

Run-Time Error 1004 on Certain Machines

  1. #1
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Run-Time Error 1004 on Certain Machines

    We have a macro-enabled template which has been working fine on all machines in the office for ages. Recently, on certain machines only, it has produced "Run-time error 1004: Unable to get the Object property of the OLEObject class."

    It works on one machine with Windows 7 Professional installed running the Home & Business 2013 version of Excel. It does not work on another Windows 7 Pro machine running the Professional Plus 2013 version of Excel.

    The code which seems to be producing the error:

    Please Login or Register  to view this content.
    I have tried referencing the OLEObjects by their index numbers instead of as a collection. This produces another error (not the same error as before). I have tried activating each OLEObject prior to retrieving its properties; another error code. I have tried adjusting the security settings in many different ways with no luck.

    Does anyone have any idea what went wrong?


    (Just in case, here is the ITEM_COMBOBOXES class)
    Please Login or Register  to view this content.
    Last edited by yay_excel; 01-17-2015 at 01:40 PM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Run-Time Error 1004 on Certain Machines

    Your problem may be caused by a Microsoft December 14th update.

    See http://support.microsoft.com/kb/3025036/EN-US
    http://blogs.technet.com/b/the_micro...-updates-.aspx

    Additional things that may help:
    From one of the links above: The problem may be corrected by deleting temporary files like *.exd and EXCEL.box in %AppData%\Roaming\Microsoft\Forms and in %temp%\VBE.

    a. Make a copy of the offending sheet
    b. Delete the original offending Sheet
    c. Rename the copy back to the name of the original

    I hope this helps.

    Lewis

  3. #3
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Run-Time Error 1004 on Certain Machines

    Thank you for your reply!

    I was able to sort this out on Tuesday by deleting the .exd files as suggested. I also followed Microsoft's instruction for disabling new security features in 2013 through the registry.

    "This issue occurs because some scriptable controls are made obsolete in Office 2013 for security reasons. This is by design, and these errors are expected. These scriptable controls are disabled by using a version-specific kill-bit that only applies to these controls, and this only happens when they are used in a document. We recommend that you do not try to embed scriptable controls directly into documents, because this behavior may reduce system security." http://support.microsoft.com/kb/2793374

    I'm not sure if both actions were necessary but they solved the problem. Thanks again.

+ 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] Sort Macro Run-time error '1004': Application/Object-defined error.
    By sam1212 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2014, 10:05 AM
  2. Replies: 4
    Last Post: 11-15-2013, 05:03 PM
  3. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  4. Macros giving Run-time error '9' on all machines except mine
    By WinterCoast in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2008, 12:56 PM
  5. [SOLVED] run-time error '1004': Application-defined or object-deifined error
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2005, 05:05 PM

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