+ Reply to Thread
Results 1 to 3 of 3

Loading a user form crashes Excel 2003 -- the second time it's opened

Hybrid View

  1. #1
    Registered User
    Join Date
    06-06-2011
    Location
    Minneapolis
    MS-Off Ver
    Excel 2003
    Posts
    2

    Loading a user form crashes Excel 2003 -- the second time it's opened

    Hi. First post. Quite new to programming in Excel. Some experience in VB6. So here goes:

    This seems like come kind of odd memory problem but I'm not sure where to look.

    I have a fairly large workbook where I've added a user form with a bunch of controls.
    The first time I load the file the user form opens fine. But the second time I load it (with Excel still running) the user form will crash Excel starting with a Path\Access file error.

    I currently have any startup code in the workbook and user from commented out.
    I do a show statement with a command button (I eventually want to auto load it.) and then unload the user form in the Workbook_Deactivate event.

    I tried this on two machines with Excel 2003 and the results are the same.

    However -- on a third machine running 2007 it seems to work just fine....

    Any thoughts? Is there something else I should be doing to release memory? (Or is this a bug in 2003?)

    Thanks for your help!
    Bob

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Loading a user form crashes Excel 2003 -- the second time it's opened

    Hello Bob,

    Welcome to the Forum!

    You should post your workbook for review. Without seeing the code, any suggestions would be guesswork. There were many changes made to Excel 2007 that don't work in 2003. Again, it would necessary to see the code to which, if any, calls are incompatible.

    To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

    File Manger Pic
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    06-06-2011
    Location
    Minneapolis
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Loading a user form crashes Excel 2003 -- the second time it's opened

    Thanks.
    It contains proprietary info which is why I didn't post it initially.
    I don't believe there is any code running but I could be wrong.
    I'll try stripping out content and if it still crashes I can post it.
    I thought I would see first if there were any known issues.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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