Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default closing subroutine

I file I inherited has a private sub workbook before close that I can't seem to disable. I think it comes when I try to close out the file (duh!) and I suppose it is being called from somewhere else since, I stuck an apostrophe in front of the "Private" subroutine but it still keeps getting invoked, and crashing my exit attempt. How do I find from where it is being called and disable it there? I tried to search for the name but found it nowhere. Can it be within funcres or namemanager modules that seems to have passwords I don't know?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default closing subroutine

That code is event driven, and is invoked when the workbook is closed, there is no call that you will see in code.

If you don't want it, just remove the code.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Dean" wrote in message ...
I file I inherited has a private sub workbook before close that I can't seem to disable. I think it comes when I try to close out the file (duh!) and I suppose it is being called from somewhere else since, I stuck an apostrophe in front of the "Private" subroutine but it still keeps getting invoked, and crashing my exit attempt. How do I find from where it is being called and disable it there? I tried to search for the name but found it nowhere. Can it be within funcres or namemanager modules that seems to have passwords I don't know?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default closing subroutine

You can't just put an apostrophe in front of the private sub, right?
"Bob Phillips" wrote in message ...
That code is event driven, and is invoked when the workbook is closed, there is no call that you will see in code.

If you don't want it, just remove the code.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Dean" wrote in message ...
I file I inherited has a private sub workbook before close that I can't seem to disable. I think it comes when I try to close out the file (duh!) and I suppose it is being called from somewhere else since, I stuck an apostrophe in front of the "Private" subroutine but it still keeps getting invoked, and crashing my exit attempt. How do I find from where it is being called and disable it there? I tried to search for the name but found it nowhere. Can it be within funcres or namemanager modules that seems to have passwords I don't know?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default closing subroutine

I assume there is something magic about the exact name "sub workbookbefore close" that causes the program to recognize it? Is that right?
"Bob Phillips" wrote in message ...
That code is event driven, and is invoked when the workbook is closed, there is no call that you will see in code.

If you don't want it, just remove the code.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Dean" wrote in message ...
I file I inherited has a private sub workbook before close that I can't seem to disable. I think it comes when I try to close out the file (duh!) and I suppose it is being called from somewhere else since, I stuck an apostrophe in front of the "Private" subroutine but it still keeps getting invoked, and crashing my exit attempt. How do I find from where it is being called and disable it there? I tried to search for the name but found it nowhere. Can it be within funcres or namemanager modules that seems to have passwords I don't know?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default closing subroutine

Partly the name of the procedure, partly the fact that it is in the ThisWorkbook code module. You could put ' in front of it but the code will throw a compilation error.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Dean" wrote in message ...
I assume there is something magic about the exact name "sub workbookbefore close" that causes the program to recognize it? Is that right?
"Bob Phillips" wrote in message ...
That code is event driven, and is invoked when the workbook is closed, there is no call that you will see in code.

If you don't want it, just remove the code.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Dean" wrote in message ...
I file I inherited has a private sub workbook before close that I can't seem to disable. I think it comes when I try to close out the file (duh!) and I suppose it is being called from somewhere else since, I stuck an apostrophe in front of the "Private" subroutine but it still keeps getting invoked, and crashing my exit attempt. How do I find from where it is being called and disable it there? I tried to search for the name but found it nowhere. Can it be within funcres or namemanager modules that seems to have passwords I don't know?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default closing subroutine

Thanks much, Bob
"Bob Phillips" wrote in message ...
Partly the name of the procedure, partly the fact that it is in the ThisWorkbook code module. You could put ' in front of it but the code will throw a compilation error.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Dean" wrote in message ...
I assume there is something magic about the exact name "sub workbookbefore close" that causes the program to recognize it? Is that right?
"Bob Phillips" wrote in message ...
That code is event driven, and is invoked when the workbook is closed, there is no call that you will see in code.

If you don't want it, just remove the code.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Dean" wrote in message ...
I file I inherited has a private sub workbook before close that I can't seem to disable. I think it comes when I try to close out the file (duh!) and I suppose it is being called from somewhere else since, I stuck an apostrophe in front of the "Private" subroutine but it still keeps getting invoked, and crashing my exit attempt. How do I find from where it is being called and disable it there? I tried to search for the name but found it nowhere. Can it be within funcres or namemanager modules that seems to have passwords I don't know?


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
Closing workbooks w/o closing Excel Barb in MD Excel Discussion (Misc queries) 3 February 15th 10 06:42 PM
Call a subroutine using variable subroutine name dhstein Excel Discussion (Misc queries) 3 July 26th 09 08:28 PM
end subroutine melric Excel Programming 3 March 31st 05 12:32 AM
Closing VB triggers closing Excel Minilek Excel Programming 2 August 6th 04 05:17 PM
closing excel after closing a workbook CWalsh[_2_] Excel Programming 3 January 21st 04 03:33 PM


All times are GMT +1. The time now is 04:11 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"