(WARNING! WARNING! WARNING!)
Bob,
I don't know :-(. I have a few template addins loaed and I ran:
Sub ScratchMacro
For Each oAddIn in Application.AddIns
If oAddIn.Name = "QuickMark.dot Then
oAddIn.Installed = False
End If
Next
End Sub
Which worked. I then simply ran:
Sub ScratchMacro
Application.AddIns("QuickMark.dot")..Installed = False
End Sub
which also worked.
Then I noticed that your Addin was Named MyComAddin and so I thought I would
try this:
Sub ScratchMacro()
Dim oAddIn As COMAddIn
For Each oAddIn In Application.COMAddIns
oAddIn.Connect = False
Next oAddIn
End Sub
Then all hell broke loose. The first indication of trouble failure was a
warning from the Windows security center that my PC was no longer protected
by a fire wall. I decided to close Word and reboot the PC. When I did the
PC failed to boot with a message Windows could not start because the
following file is missing or corrupt: Windows\system32\Config\System.
I have just spent the last four hours restoring my PC :-(. I don't know if
my little macro is the culprit, but I am certainly not running it again to
find out!!
Good luck.