Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default excel crash on workbook_open userform.show

I have a userform.show statement running with the workbook_open event.
if i close my workbook and do not save, the next time i open it, i get the
error, path/file access error and then the vb error, could not find specified
object. does anyone know what causes this. every app i have written with a
userform.show statement on this event has never caused me a problem like
this...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default excel crash on workbook_open userform.show

A complete guess.

Try cleaning up your windows temp folder.

close excel
Windows start button|run
%temp%
and delete everything you can.

Sometimes, the mass of temp files confuses excel.

If that doesn't work, I'd try moving the code from workbook_open to Auto_Open
(in a general module).

If that didn't work, I'd try:

option explicit
sub Workbook_open()
application.ontime now + timeserial(0,0,1), "Continue_Open"
end sub

And create a
Sub Continue_Open()
'with your code
'in a general module
end sub





Spencer Hutton wrote:

I have a userform.show statement running with the workbook_open event.
if i close my workbook and do not save, the next time i open it, i get the
error, path/file access error and then the vb error, could not find specified
object. does anyone know what causes this. every app i have written with a
userform.show statement on this event has never caused me a problem like
this...


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default excel crash on workbook_open userform.show

On Feb 14, 6:50*am, Dave Peterson wrote:
A complete guess.

Try cleaning up your windows temp folder.

close excel
Windows start button|run
%temp%
and delete everything you can.

Sometimes, the mass of temp files confuses excel.

If that doesn't work, I'd try moving the code from workbook_open to Auto_Open
(in a general module).

If that didn't work, I'd try:

option explicit
sub Workbook_open()
* application.ontime now + timeserial(0,0,1), "Continue_Open"
end sub

And create a
Sub Continue_Open()
* 'with your code
* 'in a general module
end sub

Spencer Hutton wrote:

I have a userform.show statement running with the workbook_open event.
if i close my workbook and do not save, the next time i open it, i get the
error, path/file access error and then the vb error, could not find specified
object. *does anyone know what causes this. *every app i have written with a
userform.show statement on this event has never caused me a problem like
this...


--

Dave Peterson


Did this problem cause corruption of your excel files? If so, maybe
you can try a popular Excel file recovery tool called Advanced Excel
Repair to repair your Excel file. It is a powerful tool to repair
corrupt or damaged Excel files.

Detailed information about Advanced Excel Repair can be found at
http://www.datanumen.com/aer/

And you can also download a free demo version at http://www.datanumen.com/aer/aer.exe

Hope this will help.

Alan
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
Excel and Word crash when I try to add a UserForm interrogativo Excel Programming 4 August 21st 17 03:49 PM
VB Error 5 loading userform using Workbook_Open rjchristensen Excel Programming 1 October 16th 07 06:19 PM
Userform causes Excel to crash Stu W Excel Programming 15 July 18th 07 06:28 AM
Add-In UserForm Crash Stu W Excel Programming 0 July 3rd 07 12:00 AM
Userform & crash [email protected] Excel Programming 0 March 1st 05 01:48 PM


All times are GMT +1. The time now is 03:46 PM.

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

About Us

"It's about Microsoft Excel"