+ Reply to Thread
Results 1 to 2 of 2

Opening Forms error with Workbook_open

  1. #1
    Merlins apprentice
    Guest

    Opening Forms error with Workbook_open

    Having upgraded my pc to Office 2003 I now get an error message in a
    spreadsheet that opens a form from the workbook_open event.
    The first error message is: Path/File Access error.
    Then another message: Could not find specified object.
    The Spreadsheet will then crash.

    It's like it tries to run the Open event code before loading up the forms.
    Is there some code I should run to ensure the forms are loaded before the
    Open code runs.
    Has something changed with forms since excel 2000?

    ( the Load Userform1 line gives the same error as Userform1.show)



  2. #2
    Jan Karel Pieterse
    Guest

    Re: Opening Forms error with Workbook_open

    Hi Merlins,

    > Having upgraded my pc to Office 2003 I now get an error message in a
    > spreadsheet that opens a form from the workbook_open event.
    > The first error message is: Path/File Access error.
    > Then another message: Could not find specified object.
    > The Spreadsheet will then crash.


    Try moving the code that opens the form to a sub in a normal module and
    use the OnTime event in the Workbook_Open event to fire that (new) sub.

    I would also recommend cleaning your project using Rob Bovey's code
    cleaner: www.appspro.com

    Regards,

    Jan Karel Pieterse
    Excel MVP
    http://www.jkp-ads.com


+ 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