+ Reply to Thread
Results 1 to 5 of 5

Userform.show = Catastrophic Failure

  1. #1
    Registered User
    Join Date
    05-14-2009
    Location
    Bowling Green KY
    MS-Off Ver
    Excel 2000
    Posts
    2

    Question Userform.show = Catastrophic Failure

    The app causes a Catastrophic Failure on some computers. At my office we all have the same computers but it does not fail on all of them. I have run it on old old laptops and it works fine.

    On my computer it fails as soon at i enable Macros and it starts to load the form and it failed on another computer once. Most of the time it works. I have startup.show (startup is the name of my first form) in my workbook open and when it fails it debugs to that statment.

    I can export the forms out of the project, delete them from the project and pull them back in and it works, but if i mod the forms any crash.

    I know my code is a little sloppy but hopefully one of you guys can figure out what the deal is. It is driving me nuts.

    Mark
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Userform.show = Catastrophic Failure

    You seem to have numerous identical userforms, even the code looks almost identical. If they do the same functions then you only need one & edit it so that it writes to specific sheets or whatever

    Your code is difficult to follow, you declare variables randomly - it's best to put them at the top of the Procedure so they are easy to find.

    You have Procedures in the WorkBook module that should be in a Standard Module.

    If you know that the code is sloppy then make some effort to tidy it up.

    Also, you don't need to select or activate the sheets
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    05-14-2009
    Location
    Bowling Green KY
    MS-Off Ver
    Excel 2000
    Posts
    2

    Re: Userform.show = Catastrophic Failure

    Yeah, I had to do this project quickly and the requirments changed as I built it. I will clean it up when I get time. I will try to ditch all the extra crap.

    I still don't know if any of that could be causing the problem, though. I think it has something to do with me making copies of that same form, changing them for and renameing them. I read somewhere that there is a glitch in excel that bugs out when form names are changed like that.

    I will work on it today and see what I come up with.

    If anyone else has any ideas please post.

    Mark

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Userform.show = Catastrophic Failure

    I would serously look at the differences in each form, do they simply work with different sheets?

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Userform.show = Catastrophic Failure

    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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