Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a large project that uses VBA to open and close files. The project is
password protected. I recently ran into a problem whereby a password prompt appears when closing Excel and VBA projects remain open after the corresponding workbooks have been closed. This error was apparently caused by omitting statements in the style of 'Set objectName to Nothing' before closing the workbook (a solution documented in other forums). This has since been corrected. The password prompts no longer appear and workbooks are closed by the code without problems. However, the problem I now have is that VBA projects now remain open for any spreadsheet that is manually opened and closed (regardless of whether they have any code in them). Re-opening the same file causes a second instance of the same project to appear. They remain open until Excel is shut down. I have tried cleaning my code and re-installed Excel but have been unable to find a fix. I have found references to other people seeing similar symptoms, but no solutions. My suspicion is that there may be some sort of hangover issue in the registry or with DLLs, as all workbooks are affected. I am using Excel 2002 with SP3 (although identical symptoms have been seen on a colleague's machine which runs Excel 2003). Any assistance would be greatly appreciated. Simon. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA Project - Open/Close with Macro | Excel Worksheet Functions | |||
why do all files get closed when i only close one in excel? | Excel Discussion (Misc queries) | |||
copy worksheet from closed workbook to active workbook using vba | Excel Worksheet Functions | |||
Project stays in VBEditor when workbook is closed | Excel Programming | |||
VBA - on a button event, open another closed file, post changes, close file | Excel Programming |