Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all,
I have a very wierd behavior problem. I am writting an Add-In. Most of the time it works correctly, however sometimes a user's computer will get into such a state that if my Add-In is loaded, the Drawing and Graphics objects will stop working correctly, even for spreadsheets that should not be interacting with my Add-In. My Add-In creates several functions to retrieve some data, handle menu events, and catch sheet change events. It doesn't create or manipulate any graphic or drawing object within Excel in any way. I have a couple of spreadsheets that have some Text boxes from the Excel Drawing menu with text in them, but no functions calls that my Add-In would catch. If my Add-In loads first, either automatically at startup or by manually activating it in Tools|Add-Ins dialog, the spreadsheet will not display the Text boxes correctly, borders will not render properly, scrolling the spreadsheet will be incredibly slow, any graphics in the Text Box will not draw properly or may dissappear altogether. The CPU load also goes to 100% and stays there for several seconds. If I set Tools|Options-[View]Objects=Hide all, then the scrolling and the rest of the spreadsheet loads fine. If, on the other hand, I load the spreadsheet first, and then manually load the Add-In, the spreadsheet works fine. I have added debug logging to try to debug this problem and Excel does not appear to be even calling my Add-In functions while working within the spreadsheet. It is difficult to get Excel into this state, however once it IS in this state, closing down Excel, or even killing its process will not fix the problem. One must reboot Windows to fix it. We see the problem in several versions of Windows (XP, 2000 & 98 have been tried). We also see the problem in Excel 2000, and Excel XP. So it doesn't appear to be Windows or Excel version specific. To summarize: 1) The Spreadsheet has no functions which call the Add-In code. 2) If the Add-In loads first, I have problems. 3) If the spreadsheet with graphics loads first, it works fine. 4) If I turn off displaying the graphics the problem goes away but of course so do my graphics. 5) Killing and restarting Excel doesn't fix the problem. 6) It appears that I am not having memory issues. Could this be a bug in Excel's graphic library? -alan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I tried this macro and I only have a handful of objects, the larger of
the two spreadsheet I have has 16, the smaller has 8. -alan |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have add-ins with a very similar problem - (I have only looked at Office
2003). In my case there are always 2 add-ins involved ("myaddin.xla" and "another.xla"). and it seems to be linked to database connections: If I just load "myaddin.xla", all the graphics in subsequently opened worksheets are fine If I load "myaddin.xla" and "another.xla" (any order) , the graphics are not always shown in susequently opened worksheets If I show a graphic first, and then load "myaddin.xla" and "another.xla", everything works fine The key issue is that "another.xla" perfoms database access. I have seen this problem with three different "another.xla" 1) Is one I've written that uses ADO to connect to an Access database. 2) I have also heard that it happens when "another.xla" is a 3rd party addin connecting to a proprietry database format. 3) Also happens with an add-in that uses DAO to read an Access database I'd really like to know what's going wrong! RichardT " wrote: Hello all, I have a very wierd behavior problem. I am writting an Add-In. Most of the time it works correctly, however sometimes a user's computer will get into such a state that if my Add-In is loaded, the Drawing and Graphics objects will stop working correctly, even for spreadsheets that should not be interacting with my Add-In. My Add-In creates several functions to retrieve some data, handle menu events, and catch sheet change events. It doesn't create or manipulate any graphic or drawing object within Excel in any way. I have a couple of spreadsheets that have some Text boxes from the Excel Drawing menu with text in them, but no functions calls that my Add-In would catch. If my Add-In loads first, either automatically at startup or by manually activating it in Tools|Add-Ins dialog, the spreadsheet will not display the Text boxes correctly, borders will not render properly, scrolling the spreadsheet will be incredibly slow, any graphics in the Text Box will not draw properly or may dissappear altogether. The CPU load also goes to 100% and stays there for several seconds. If I set Tools|Options-[View]Objects=Hide all, then the scrolling and the rest of the spreadsheet loads fine. If, on the other hand, I load the spreadsheet first, and then manually load the Add-In, the spreadsheet works fine. I have added debug logging to try to debug this problem and Excel does not appear to be even calling my Add-In functions while working within the spreadsheet. It is difficult to get Excel into this state, however once it IS in this state, closing down Excel, or even killing its process will not fix the problem. One must reboot Windows to fix it. We see the problem in several versions of Windows (XP, 2000 & 98 have been tried). We also see the problem in Excel 2000, and Excel XP. So it doesn't appear to be Windows or Excel version specific. To summarize: 1) The Spreadsheet has no functions which call the Add-In code. 2) If the Add-In loads first, I have problems. 3) If the spreadsheet with graphics loads first, it works fine. 4) If I turn off displaying the graphics the problem goes away but of course so do my graphics. 5) Killing and restarting Excel doesn't fix the problem. 6) It appears that I am not having memory issues. Could this be a bug in Excel's graphic library? -alan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problems Inserting Objects in an Excel 2007 Spreadsheet | Excel Discussion (Misc queries) | |||
Editing problems with embedded Excel objects | Excel Discussion (Misc queries) | |||
Ability for Excel to find and replace graphic objects (like Word) | Excel Worksheet Functions | |||
Linked excel objects in word, and my resulting problems :) | Excel Programming | |||
new class w/ graphic objects | Excel Programming |