R
Robin Tucker
Hi,
I am embedding links, via. VBA (well, via. VB.NET, through VBA!) into Word.
I know where my OLE object is, I want to embed a link from it to some text.
When I "record a macro", "pasting special", the resulting field code looks
something like this:
{ LINK OurCompany.InfraredImage "Document3.doc" "_1158083192\\Spot 1" \a
\t }
I can identify all of these things except the "_1158083192", which is
presumably the moniker Microsoft Word uses to identify the object being
linked to.
Can anyone tell me how I get this number into my program, so I can embed a
link via. code? This only works at present through copy/paste special. I
cannot find the moniker anywhere in the OLEFormat property of the
InlineShape. Is there an interface I should use on the OLE object that will
give me this number?
Thanks
Robin
I am embedding links, via. VBA (well, via. VB.NET, through VBA!) into Word.
I know where my OLE object is, I want to embed a link from it to some text.
When I "record a macro", "pasting special", the resulting field code looks
something like this:
{ LINK OurCompany.InfraredImage "Document3.doc" "_1158083192\\Spot 1" \a
\t }
I can identify all of these things except the "_1158083192", which is
presumably the moniker Microsoft Word uses to identify the object being
linked to.
Can anyone tell me how I get this number into my program, so I can embed a
link via. code? This only works at present through copy/paste special. I
cannot find the moniker anywhere in the OLEFormat property of the
InlineShape. Is there an interface I should use on the OLE object that will
give me this number?
Thanks
Robin