R
Red Rider
I created two Excel addins that worked perfectly well in Excel 2000.
Private Sub Workbook_Open()
‘ code for UpdateAddin.xla
‘ unload addin
AddIns("TestAddin").Installed = False
‘ Code that checks and copies newer version
‘ of TestAddin.xla addin if needed
‘ reinstall addin
AddIns("TestAddin").Installed = True
End Sub
The UpdateAddin addin unloads the TestAddin addin and checks to see if
a newer version is present. It copies the newer version (code not
shown) and then reinstalls TestAddin. When I installed these same
addins in Excel 2002 I get the following error:
Excel experienced a serious error the last time UpdateAddin.xls was
opened. Would you like to disable this addin?
I’ve tried different addins, other than TestAddin, and get the same
result. The problem appears to be uninstalling then reinstalling any
addin using the Workbook_Open() procedure. Since many updates are
done to TestAddin I’m trying to keep the upgrade transparent to users.
Any help would be appreciated.
Private Sub Workbook_Open()
‘ code for UpdateAddin.xla
‘ unload addin
AddIns("TestAddin").Installed = False
‘ Code that checks and copies newer version
‘ of TestAddin.xla addin if needed
‘ reinstall addin
AddIns("TestAddin").Installed = True
End Sub
The UpdateAddin addin unloads the TestAddin addin and checks to see if
a newer version is present. It copies the newer version (code not
shown) and then reinstalls TestAddin. When I installed these same
addins in Excel 2002 I get the following error:
Excel experienced a serious error the last time UpdateAddin.xls was
opened. Would you like to disable this addin?
I’ve tried different addins, other than TestAddin, and get the same
result. The problem appears to be uninstalling then reinstalling any
addin using the Workbook_Open() procedure. Since many updates are
done to TestAddin I’m trying to keep the upgrade transparent to users.
Any help would be appreciated.