Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Excel cores when trying to close a workbook after exporting+removing VBA modules

I have a utility class in an 'addin' that listens for onClose and Save
events on worksheets. If a flag is set when the sheet is closed all
the modules are exported to a repository and then the file is saved
with no modules loaded.

However this removing of modules followed by a call to close the
spreadsheet core's excel in the VBA. This is probably due to VBA
still having hooks into functions that have now been removed.

Is there anyway to refresh VBA's view of what is loaded and what is
not? I have tried inserting onTime events to fire the close of the
worksheet momentarily after it is exported, but this still causes
problems.

Is there anyway to find the cause of these numerous core's? Or does
anyone know a way to update the internal caches of VBA as to what is
loaded and what is not?

Many Thanks

Tom

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
Exporting code modules urkec Excel Programming 2 April 21st 07 01:28 PM
Removing modules via VBA ExcelMonkey Excel Programming 3 March 21st 07 03:50 PM
Work-around for exporting sheet contents and removing code Arnold[_3_] Excel Programming 3 January 24th 07 12:04 PM
Removing VB Modules Automatically JNaugh Excel Programming 1 March 15th 06 07:00 PM
Removing the 'X' (close) from forms in excel VB Justin Philips Excel Programming 1 March 10th 06 06:22 PM


All times are GMT +1. The time now is 09:05 PM.

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

About Us

"It's about Microsoft Excel"