Save As causes Crash!

D

Drummer361

Hello,

I wondered if anyone has come across this problem in the past:

I have an Excel VBA UserForm with a Save As button. It successfully
saves the file as a new file in a location I choose, and then
successfully closes.

I then go to open the NEW file, and it crashes upon Form entry. I get
this error message:

Run-time error '-2147417848 (80010108)':

Automation error
The object invoked has disconnected from its clients.


If I click END or DEBUG it dumps and unloads, and asks to send the
errors to Microsoft.
 
D

ducky

Drummer361 said:
Hello,

I wondered if anyone has come across this problem in the past:

I have an Excel VBA UserForm with a Save As button. It successfully
saves the file as a new file in a location I choose, and then
successfully closes.

I then go to open the NEW file, and it crashes upon Form entry. I get
this error message:

Run-time error '-2147417848 (80010108)':

Automation error
The object invoked has disconnected from its clients.


If I click END or DEBUG it dumps and unloads, and asks to send the
errors to Microsoft.

where is your form stored? where are your 2 different workbooks
stored? are you using multiple instances of excel?

AR
 
D

Drummer361

Okay I guess I should have given specifics, sorry about that! ;)

I have 2 worksheets and an Introductory UserForm that opens when you
enable macros. You read some info on the Intro Userform, and then
click "Next" and that closes the first userform and opens the REAL
userform with all of the code. It is at either the first userform
closing or the 2nd userform opening that causes the program to crash...


Within this userform I have multiple Modules with Public codes. The
XLS is stored on my harddrive on my personal computer right now with
Administrator priviledges. I have Office 2000 and Windows XP with all
the updates.
 
D

Drummer361

It seems that if I go into VB Editor, and save the current Workbook
from that location, then run the Save As command to create a new copy
of the Workbook, then open up that workbook, it works.

But then if I choose to Save As from the NEW workbook, then close it,
and open up the 3rd New Workbook, that Workbook will crash and give me
the error.

I'm finding a pattern slowly.

Any thoughts???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top