jdw
2004-09-28 18:21:02 UTC
I need to check if a user's machine has a reference to Excel before
executing a macro in Word. This is the following code:
If VBE.ActiveVBProject.References("Excel").IsBroken Then
If Excel is referenced, there are no complaints. If I uncheck it from
references, then I get the "Index out of bounds" or something similar.
Can anyone help?
executing a macro in Word. This is the following code:
If VBE.ActiveVBProject.References("Excel").IsBroken Then
If Excel is referenced, there are no complaints. If I uncheck it from
references, then I get the "Index out of bounds" or something similar.
Can anyone help?