I have a Word doc with links to Excel. Is there a way
using Word VBA to break the links to Excel?

Re: VBA command to break links by Martin

Martin
Thu Dec 04 15:39:19 CST 2003

> I have a Word doc with links to Excel. Is there a way
> using Word VBA to break the links to Excel?

Yes. E.g:

Selection.InlineShapes(1).LinkFormat.BreakLink

... which breaks the link for the first selected inlineshape.

Or:

Selection.ShapeRange(1).LinkFormat.BreakLink

... to break the link to the first selected shape.


Cheers,

Martin