eveCalypso
Programmer
Hello All,
Sorry to bother you again!
All right, I managed to get almost everything working, except...
I need to be able to remove a reference at runtime...
How do I do that? I am testing that the reference exists, if it does, I want to remove it and re-assign. I can do everything except remove it!
I know of this:
ActiveDocument.VBProject.References.Remove(Reference),
but no matter what I put in the "Reference" field, I get errors (Type Mismatch etc). Apparently it is expecting:
"For the References collection, a reference to a type library or a project", but it does not like what I send.
Can anyone please help me with this one last thorn in my side!
Best Regards,
EvE
Sorry to bother you again!
All right, I managed to get almost everything working, except...
I need to be able to remove a reference at runtime...
How do I do that? I am testing that the reference exists, if it does, I want to remove it and re-assign. I can do everything except remove it!
I know of this:
ActiveDocument.VBProject.References.Remove(Reference),
but no matter what I put in the "Reference" field, I get errors (Type Mismatch etc). Apparently it is expecting:
"For the References collection, a reference to a type library or a project", but it does not like what I send.
Can anyone please help me with this one last thorn in my side!
Best Regards,
EvE