PC Review


Reply
Thread Tools Rate Thread

"Cannot quit Excel" after tried to access protected WB

 
 
tskogstrom
Guest
Posts: n/a
 
      12th Dec 2006
Hi,

I have a protected WB and WS with VBA code. If I open it and go to
"View code", I need to enter the password. Right.

If I Cancel, I get "System error &H80004005 (-2147467259)" and
"Undefiend error" message.

If I close VBA editor, and try to close Excel, it tell "Cannot quit
Excel". The only thing I can do is to end the excel process.

There are nothing in call stack. What can I do to be able to end excel
normally? Is there any open processes I can't see but that can be ended
with VBA on Workbook_Close event maybe?

Happy to any suggestions,
Tskogstrom

 
Reply With Quote
 
 
 
 
tskogstrom
Guest
Posts: n/a
 
      13th Dec 2006
Hi,

Isn't Quit just VBA but the same I do now manually? Or will Quit handle
open processes/locked memory/"somethings" in another way?

/Regards
tskogstrom



Madhan skrev:

> Hi, if you have access to the code, then try giving Application.Quit in the
> code.
>
> "tskogstrom" wrote:
>
> > Hi,
> >
> > I have a protected WB and WS with VBA code. If I open it and go to
> > "View code", I need to enter the password. Right.
> >
> > If I Cancel, I get "System error &H80004005 (-2147467259)" and
> > "Undefiend error" message.
> >
> > If I close VBA editor, and try to close Excel, it tell "Cannot quit
> > Excel". The only thing I can do is to end the excel process.
> >
> > There are nothing in call stack. What can I do to be able to end excel
> > normally? Is there any open processes I can't see but that can be ended
> > with VBA on Workbook_Close event maybe?
> >
> > Happy to any suggestions,
> > Tskogstrom
> >
> >


 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      13th Dec 2006
With all WSs and WB protected and VBA code password protected, I cannot get
this to happen.
Either the WB may be corrupt or your code is running/in break mode at that
time.

NickHK

"tskogstrom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I have a protected WB and WS with VBA code. If I open it and go to
> "View code", I need to enter the password. Right.
>
> If I Cancel, I get "System error &H80004005 (-2147467259)" and
> "Undefiend error" message.
>
> If I close VBA editor, and try to close Excel, it tell "Cannot quit
> Excel". The only thing I can do is to end the excel process.
>
> There are nothing in call stack. What can I do to be able to end excel
> normally? Is there any open processes I can't see but that can be ended
> with VBA on Workbook_Close event maybe?
>
> Happy to any suggestions,
> Tskogstrom
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel still running after "quit" command Sam Hill Microsoft Excel Discussion 2 14th Aug 2006 04:00 PM
Hiding the Application's "X" (Quit Access) =?Utf-8?B?QWNjZXNzMTAx?= Microsoft Access Security 2 3rd Mar 2006 08:08 PM
can't force-quit app on NT Server, "access is denied" =?Utf-8?B?TWF1cnkgTWFya293aXR6?= Windows XP Security 1 29th Nov 2005 05:11 PM
"cannot quit microsoft excel" 2002 Jim Microsoft Excel Crashes 2 16th Feb 2004 07:21 AM
using the "quit" method during the form "on load" event =?Utf-8?B?ZG90dW4=?= Microsoft Access VBA Modules 0 15th Jan 2004 12:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 PM.