P
Peter Karlström
Hi
One of our COMAddin projects involves customization of the pageheader and
pagefooter in an Excel XP (2002) spreadsheet.
The customization is made in a public sub (Updateproperties) which is called
from a toolbar commandbutton. This works fine.
Now we have added an automatic update when the spreadsheet is opened (in
Workbook_Open) using the previously mentioned public sub UpdateProperties.
Now the vierd stuff begins. When we automatically update the pageheader when
opening the spreadsheet, it gets corrupted. When we right after that manually
uppdate the pageheader/footer from the toolbar during the same session in the
opened file, the header/footer is OK again. The same code is running in both
occassions.
We have discovered that this behavoir only occurs in special versions of
Excel XP (2002).
Using an updated version (10.6845.6845 SP3) it works as expected.
Using an older version (10.4302.4219 SP-2) the corruption occurs.
The customer whiches not to force an Office 2002 SP update, so my question is:
Is there a hotfix/workaround avaliable for this particular error?
Thanks in advance
One of our COMAddin projects involves customization of the pageheader and
pagefooter in an Excel XP (2002) spreadsheet.
The customization is made in a public sub (Updateproperties) which is called
from a toolbar commandbutton. This works fine.
Now we have added an automatic update when the spreadsheet is opened (in
Workbook_Open) using the previously mentioned public sub UpdateProperties.
Now the vierd stuff begins. When we automatically update the pageheader when
opening the spreadsheet, it gets corrupted. When we right after that manually
uppdate the pageheader/footer from the toolbar during the same session in the
opened file, the header/footer is OK again. The same code is running in both
occassions.
We have discovered that this behavoir only occurs in special versions of
Excel XP (2002).
Using an updated version (10.6845.6845 SP3) it works as expected.
Using an older version (10.4302.4219 SP-2) the corruption occurs.
The customer whiches not to force an Office 2002 SP update, so my question is:
Is there a hotfix/workaround avaliable for this particular error?
Thanks in advance