Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jon jon is offline
external usenet poster
 
Posts: 18
Default Run Time Error 75

Hello.

I have a worksheet that the Workbook_Open event to load a
userform. The code is:

Private Sub Workbook_Open()
Load UserForm1
UserForm1.Show
ActiveWorkbook.Close SaveChanges:=False
End Sub

When the user exits UserForm1, control passes back to
workbook_open macro, and the workbook is closed.

When I open the worksheet for the first time, everything
works fine. However, when I exit via the above code, and
then reopen the worksheet, I get the following VB errors:

"Path/File Access Error", and
"Run-Time Error 75, Cannot find the specified object"

When I hit the DEBUG button, the "Load Userform1" is
highlighted (see code, above). Apparently, it cannot
find UserForm1. Also, when this error occurs, the
Project Explorer window appears blank -- nothing is in
it.

If I hit END in the Error box, Excel crashes.

This worksheet and macro was originally designed in Excel
97, and it ran fine. Now, I'm using Excel 2002 with
Windows XP. I recently installed an update for Excel,
but the problem still exists.

Does anyone know what is going on?

Thanks!

-Jon
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Same problem

Jon I am having the exact same problem I have multiple users access a
spreadsheet and I they don't save the changes when finished. When they open
the sheet for the first time it works fine, however if they don't close excel
out completely and try to reopen the program they get runtime errors and
catastrophic failures. If i try to debug them half the time excel will crash.
I'm using multiple userforms in this spreadsheet as well.

I'm real interested in finding a solution to this as I'm sure you are!

Eric

"Jon" wrote:

Hello.

I have a worksheet that the Workbook_Open event to load a
userform. The code is:

Private Sub Workbook_Open()
Load UserForm1
UserForm1.Show
ActiveWorkbook.Close SaveChanges:=False
End Sub

When the user exits UserForm1, control passes back to
workbook_open macro, and the workbook is closed.

When I open the worksheet for the first time, everything
works fine. However, when I exit via the above code, and
then reopen the worksheet, I get the following VB errors:

"Path/File Access Error", and
"Run-Time Error 75, Cannot find the specified object"

When I hit the DEBUG button, the "Load Userform1" is
highlighted (see code, above). Apparently, it cannot
find UserForm1. Also, when this error occurs, the
Project Explorer window appears blank -- nothing is in
it.

If I hit END in the Error box, Excel crashes.

This worksheet and macro was originally designed in Excel
97, and it ran fine. Now, I'm using Excel 2002 with
Windows XP. I recently installed an update for Excel,
but the problem still exists.

Does anyone know what is going on?

Thanks!

-Jon

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error rdavis7408 Excel Programming 1 August 25th 04 03:54 AM
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) Tim[_36_] Excel Programming 4 April 23rd 04 02:53 AM
Run-time error '11' & Run-time error '1004' Piers Clinton-Tarestad Excel Programming 0 January 9th 04 08:35 PM


All times are GMT +1. The time now is 02:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"