Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Excel 2007 - VBA Password Input shows after Excel is closed

Excel 2007/Vista Business

I've had problems I've seen documented (but but resolved) elsewhere, with
Excel crashing on the execution of ActiveWorkbook.Close False. 'Cured' that
with Application.Quit (not ideal), but now, after Excel closes, the VBA
Project password input box is displayed. It takes 3 clicks on Cancel to
dismiss it. If I unprotect the VBA Project, Excel closes silently, as I
would expect.

My code is a bit complex to post here, but the ThisWorkbook module code no
longer includes Workbook_BeforeClose procedure, in case you're wondering.

Anyone come across this issue before?

TIA
Bob

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Excel 2007 - VBA Password Input shows after Excel is closed

Bob Alhat used his keyboard to write :
Excel 2007/Vista Business

I've had problems I've seen documented (but but resolved) elsewhere, with
Excel crashing on the execution of ActiveWorkbook.Close False. 'Cured' that
with Application.Quit (not ideal), but now, after Excel closes, the VBA
Project password input box is displayed. It takes 3 clicks on Cancel to
dismiss it. If I unprotect the VBA Project, Excel closes silently, as I would
expect.

My code is a bit complex to post here, but the ThisWorkbook module code no
longer includes Workbook_BeforeClose procedure, in case you're wondering.

Anyone come across this issue before?

TIA
Bob


Are you saying that procedure is no longer available, OR that you no
longer use it?

In the case of it's no longer available then your file is corrupt. Not
surprising and is why some people use an Auto_Close procedure in a
standard module instead.

You could try running Rob Bovey's CodeCleaner addin to see if it fixes
anything. www.appspro.com

I recommend you also ditch using the ThisWorkbook module for your
startup/shutdown routines, and keep use of it to monitoring workbook
events only. Ideally, an events class would even be better but that's a
bit complex to get into at this point.

HTH

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Excel 2007 - VBA Password Input shows after Excel is closed

Thanks for your help GS & Dave.
Regrettably, CodeCleaner did not do the trick. If I find a fix, I'll report
back.

Thanks again,
Bob


"GS" wrote in message
...
Bob Alhat used his keyboard to write :
Excel 2007/Vista Business

I've had problems I've seen documented (but but resolved) elsewhere, with
Excel crashing on the execution of ActiveWorkbook.Close False. 'Cured'
that with Application.Quit (not ideal), but now, after Excel closes, the
VBA Project password input box is displayed. It takes 3 clicks on Cancel
to dismiss it. If I unprotect the VBA Project, Excel closes silently, as
I would expect.

My code is a bit complex to post here, but the ThisWorkbook module code
no longer includes Workbook_BeforeClose procedure, in case you're
wondering.

Anyone come across this issue before?

TIA
Bob


Are you saying that procedure is no longer available, OR that you no
longer use it?

In the case of it's no longer available then your file is corrupt. Not
surprising and is why some people use an Auto_Close procedure in a
standard module instead.

You could try running Rob Bovey's CodeCleaner addin to see if it fixes
anything. www.appspro.com

I recommend you also ditch using the ThisWorkbook module for your
startup/shutdown routines, and keep use of it to monitoring workbook
events only. Ideally, an events class would even be better but that's a
bit complex to get into at this point.

HTH

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Excel 2007 - VBA Password Input shows after Excel is closed

I've never seen this in xl2007, but I don't use that version very often.

But I did see it in xl97 or xl2k. I'd see it when I started to record a new
macro into that workbook's protected project. It's been awhile, but I think the
cause was that a new module was created when the recorder started (and failed).

The other time I saw this is when I was using an early version of Google
desktop. Google desktop indexes all that junk in the file and it would try to
index the code in the modules, too.

But this, too was a longgggg time ago.

If you didn't try recording a module or you don't have google desktop running,
then you can ignore this message.

Bob Alhat wrote:

Excel 2007/Vista Business

I've had problems I've seen documented (but but resolved) elsewhere, with
Excel crashing on the execution of ActiveWorkbook.Close False. 'Cured' that
with Application.Quit (not ideal), but now, after Excel closes, the VBA
Project password input box is displayed. It takes 3 clicks on Cancel to
dismiss it. If I unprotect the VBA Project, Excel closes silently, as I
would expect.

My code is a bit complex to post here, but the ThisWorkbook module code no
longer includes Workbook_BeforeClose procedure, in case you're wondering.

Anyone come across this issue before?

TIA
Bob


--

Dave Peterson
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
Copying Excel 2007 chart to Word 2007 - only half of it shows NonTechie Excel Discussion (Misc queries) 2 November 3rd 09 09:26 PM
macro to input password when saving doc in excel Nissassa Excel Discussion (Misc queries) 2 October 29th 08 08:22 PM
Excel 2007 - Nothing shows up in the cell while I'm typing! TomO Excel Discussion (Misc queries) 2 May 14th 08 01:35 AM
Excel 2007- color on current workshet only shows in pre print prev rose Excel Worksheet Functions 5 April 6th 08 08:33 PM
Excel-Input numeric value in cell, it shows up as 1/100th of entry DarinMelin Excel Discussion (Misc queries) 2 October 31st 07 06:14 PM


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

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"