+ Reply to Thread
Results 1 to 6 of 6

AUTOMATION ERROR (error 440)

  1. #1
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    AUTOMATION ERROR (error 440)

    After they updated the system this happen.

    When I clicked the "debug" and it highlighted this:

    frmInputs.Show

    Please Login or Register  to view this content.
    THEN when I click "helped" this what it said. What should I do because I don't understand what it said on the help.... please help.


    In VBA, Automation Error (440) occurs when you try to access the automation objects (objects that are used by other applications or programming tools). It’s a run time error that can occur while running a code. As Microsoft says that, there could be the following reasons that can make this error occurs:

    1.When you let an applicaton access an object from Excel or to create an object that can be used with the Excel and while using a method or a property with that object this error can occurs.
    2.Or you are trying to use an error that has been blocked or diabled by the system administrator.

    How to Deal with Automation Error

    The best way to deal with the automation error is to use the “On Error Resume Next” statement that moves to the next line of the code irrespective of the error. You can also use the Err object to get information about the source and nature of the error.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: AUTOMATION ERROR (error 440)

    On the proviso the UserForm in question actually exists in the file, I would say it's highly unlikely that the frmInputs.Show line is the one actually causing the problem.
    When you click Debug and it stops at that line, press F8 and it should carry on. Keep pressing F8 to step through the code line by line until the one that actually causes the problem shows up.

    IF you need more help than that debugging it then attach a desensitised version of the file and we can look at it for you.

    BSB

  3. #3
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: AUTOMATION ERROR (error 440)

    Here is the code that I have in the frminputs.


    Please Login or Register  to view this content.

    Thank you

  4. #4
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: AUTOMATION ERROR (error 440)

    When I click the debug it highlighted the "frmInput.Show"
    then this one
    Please Login or Register  to view this content.

    then after this one:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: AUTOMATION ERROR (error 440)

    Hi

    I google and saw this:
    "Error trapping is one of the best ways to solve this problem. You can use On Error Resume Next – or On Error GoTo Label – depending on your needs at the time. If you want the code to carry on running and ignore the error, use On Error Resume Next. If you want the code to stop running, create an error label and direct the code to that error label by using On Error GoTo label."

    Where do I add in the code "On Error Resume Next."


    Thanks.

  6. #6
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,719

    Re: AUTOMATION ERROR (error 440)

    Here is the sample file.
    After they upraded the system from 32 to 64bit... they some of my macro stop working or getting errors.

    Please help. Thanks in advance.
    Attached Files Attached Files

+ 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] User Form Facing Compile Error and Automation Error
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-14-2018, 01:05 PM
  2. REPOSTING THREAD: Run time error 2146232576 (80131700) - Automation Error
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2018, 07:39 AM
  3. Loop Nesting is returning Run-Time Error '-2147221080 (800401a8)': Automation Error
    By ChristopherBrandonKi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2014, 02:36 PM
  4. [SOLVED] Run-tim error -2147467259(80004005): Automation error Unspecidied error
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2014, 12:12 PM
  5. Facing 'run-time error -2147217871 (80040e31) Automation error' in excel VBA
    By junaidanjum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2013, 03:48 AM
  6. Replies: 7
    Last Post: 05-15-2013, 09:02 AM
  7. Replies: 7
    Last Post: 01-15-2010, 02:34 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