Closed Thread
Results 1 to 11 of 11

Runtime 440 error when opening a UserForm

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Runtime 440 error when opening a UserForm

    I made a column navigator userform a few weeks ago, and it's been working great. I have it saved in my Personal, and open it when I have a big workbook to navigate. Today it won't open, just gives me RunTime 440 Automation Error. I've attached the form and the code in the attached workbook. it's now working in the attachment, but not working from my Personal. I'd appreciate any help I could get in finding why it won't work today.
    Attached Files Attached Files
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Runtime 440 error when opening a UserForm

    If you open the userform on an empty sheet

    There is no used range

    So your Userform Crashes At this point:

    Please Login or Register  to view this content.

    Try this:-

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 04-01-2019 at 04:30 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Re: Runtime 440 error when opening a UserForm

    But I'm not opening on an empty sheet. I get the error on the line
    Please Login or Register  to view this content.
    no matter what workbook I'm working in.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Runtime 440 error when opening a UserForm

    No you are not.

    Set a breakpoint at the top of your Userform Activate and also the Userform initialise subroutines.

    Your Marco will get to one or both of these subroutines.

    Step through using the f5 button until the userform crashes.





    I see somewhere else where the Userform can crash

    Please Login or Register  to view this content.
    This only works if a is an array. Not So if you only Have one Entry.



    Try this instead:-


    Please Login or Register  to view this content.
    Last edited by mehmetcik; 04-01-2019 at 04:45 PM.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Re: Runtime 440 error when opening a UserForm

    I appreciate the wisdom, but no joy here. I set the breakpoints like you said. We didn't get that far. The crash happens right where I said. before Activate or Initialize is called. If I try to step through Activate, I get the error immediately. Same with Initialize.

    Also, the sheets I'm trying it on have plenty of header fields, so there's no non-populated array.

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Runtime 440 error when opening a UserForm

    Ok

    So have you used
    Please Login or Register  to view this content.
    elsewhere in your macros?


    Last thought.

    Is the Userform in your Personal Workbook?
    Last edited by mehmetcik; 04-01-2019 at 04:58 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Re: Runtime 440 error when opening a UserForm

    No on Dim a, Yes on Personal Workbook. The was in my initial post, and also the form has been in constant use for the past two weeks. Only today has it given an issue.

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Runtime 440 error when opening a UserForm

    I guess you must have a corrupt personal workbook.

    Export the Userform delete the macro. Close excel, Remembering to save the Personal workbook.

    Open Excel

    Reload the Userform

    And Pray.

  9. #9
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,990

    Re: Runtime 440 error when opening a UserForm

    And that did the trick! Thanks for sticking with me through this!

  10. #10
    Registered User
    Join Date
    12-13-2022
    Location
    New York
    MS-Off Ver
    10
    Posts
    10

    Re: Runtime 440 error when opening a UserForm

    Update the installation on an existing workstation

    Launch the software via the desktop or start menu shortcut. If a version update or patch has been applied to the server, the workstation should recognize it and prompt to apply it.
    Follow the prompts to install the software update.
    If using an operating system that has User Account Control (UAC) enabled, then right-click on the shortcut for the Blackbaud application and select "Run as administrator" the first time you attempt to log in.

    Hope You Find This Useful,
    Peter

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,035

    Re: Runtime 440 error when opening a UserForm

    Peter
    As I have indicated in another thread this is an old solved thread. Please look to help current situations
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Userform Runtime Error 35788
    By elind21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-18-2018, 08:20 PM
  2. Runtime Error VBA Userform
    By houthoofdmichael in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-11-2017, 09:25 PM
  3. [SOLVED] Runtime error on UserForm
    By DJvdW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2013, 10:16 AM
  4. Opening Word Template(.dot) with Excel VBA - RUNTIME ERROR
    By wildjester in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-04-2011, 04:17 PM
  5. Runtime error 9 opening and editing macro
    By mehdoush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2009, 01:10 PM
  6. [SOLVED] trying to trap runtime error when opening file without password
    By Tim in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-03-2006, 01:00 AM
  7. VBA Code runtime error only after opening Locals window
    By keeena in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2006, 02:35 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