OK I tried it and here's what happened: First off the code runs great and I can here word opening(disk activity). Single stepping the code I come to this partwhile @error = 0
? olegetproperty($addin,"name")
$= olereleaseobject($addin)
$addin = oleenumobject($addins,$enum)
loop
It goes through the loop once and continues on. I wanted to see what was happening so I added this
$r=olegetproperty($addin,"name")
? "addin is " + $r
I think this is what the second line of the loop is supposed to do but I wanted confimation.
Anyhow this is what I get:
addin is
Obviously olegetproperty($addin,"name") isn't returning anything. What does this mean? I assume this isn't a good sign. I am also assuming(I know little about OLE) that you were trying to enumerate the add-ins in word, Shawn. Is that correct? I can tell you that I do have the macro installed and I don't know why it isn't being returned unless addins doesn't include macros. That doesn't make sense though.
Anyhow that was a cool exercise. Thanks Shawn. If you have any other ideas let me know.
Kirm
P.S. How's the weather in TO? Here it sucks. I've had the opportunity to visit your city once about 6 years ago and I was very impressed. It's a beautiful city.