C
C Duden
From an office Add-In, I am able to access a linked object (Picture, Text)
in Word via the LinkFormat object (see code to follow). I am looking for a
way to access this (or an analogous) collection in an excel Workbook (or
Worksheet).
Does anyone have any ideas?
Simplified Code used to access Links in a Word Document (this works):
Word.Field WordField;
Word.LinkFormat WordLinkFormat;
for(int i=1; i<doc.Fields.Count+1; i++)
{
WordField = doc.Fields;
WordLinkFormat = WordField.LinkFormat;
WordLinkFormat.SourceFullName = "<Some Value I want to set>";
}
Any help would be appreciated!
in Word via the LinkFormat object (see code to follow). I am looking for a
way to access this (or an analogous) collection in an excel Workbook (or
Worksheet).
Does anyone have any ideas?
Simplified Code used to access Links in a Word Document (this works):
Word.Field WordField;
Word.LinkFormat WordLinkFormat;
for(int i=1; i<doc.Fields.Count+1; i++)
{
WordField = doc.Fields;
WordLinkFormat = WordField.LinkFormat;
WordLinkFormat.SourceFullName = "<Some Value I want to set>";
}
Any help would be appreciated!