Have you tried to compile your project?
Before twisting yr mind about what is happening to the reference y're
trying to set, below lines are not compilable...
> If MyDialog.Display <> -1 Then GoTo ErrOpen
> MyDialog.Execute
> ActiveDocument.AttachedTemplate = ""
> End If
The If Then block is not valid in above sequence.
Krgrds,
Perry
> Hi Folks,
> I'm having trouble with a Template which sets a reference to an addin using
[quoted text clipped - 23 lines]
>
> J
me@me.com - 15 Nov 2004 13:33 GMT
Hi Perry,
My mistake...there should be no end if at the end of that statement and the
code I have does compile fine. I have no idea why the temp file is being
used rather than the absolute reference I put in.
If the reference already exists and I tried to add a reference with On Error
Resume Next would it remove the existing reference or cause problems I am
seeing here??
Cheers
J