Hi,

I am working on an app which (among other things) is resonsible for
making a PDF of Word docs. That PDF part is fine.

The problem is, the Word docs often contains OLE links for which the
source is not available. When my print routine opens these docs, the
links are converted to "Error! Not a valid link." in the same way that
happens when I choose 'Update Links' when opening a Word doc that
contains missing links, through Word.

My printing routine is very simple. I just call Open(),
PutActivePrinter() amd PrintOut(). My question is: is there any way to
open a word doc in VBA and force Word to explicitly not update links?

Thx in advance.

Peter

Re: How do you disable updating of links through VBA by Doug

Doug
Mon Jul 30 19:44:24 CDT 2007

Dim i As Long
With ActiveDocument
For i = .Fields.Count To 1 Step -1
.Fields(i).Unlink
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

<moodypete@hotmail.com> wrote in message
news:1185820077.694544.47710@w3g2000hsg.googlegroups.com...
> Hi,
>
> I am working on an app which (among other things) is resonsible for
> making a PDF of Word docs. That PDF part is fine.
>
> The problem is, the Word docs often contains OLE links for which the
> source is not available. When my print routine opens these docs, the
> links are converted to "Error! Not a valid link." in the same way that
> happens when I choose 'Update Links' when opening a Word doc that
> contains missing links, through Word.
>
> My printing routine is very simple. I just call Open(),
> PutActivePrinter() amd PrintOut(). My question is: is there any way to
> open a word doc in VBA and force Word to explicitly not update links?
>
> Thx in advance.
>
> Peter
>



RE: How do you disable updating of links through VBA by oldman

oldman
Mon Jul 30 19:48:00 CDT 2007

Hi,

Run this:

application.Options.UpdateLinksAtOpen = false

Old Man

"moodypete@hotmail.com" wrote:

> Hi,
>
> I am working on an app which (among other things) is resonsible for
> making a PDF of Word docs. That PDF part is fine.
>
> The problem is, the Word docs often contains OLE links for which the
> source is not available. When my print routine opens these docs, the
> links are converted to "Error! Not a valid link." in the same way that
> happens when I choose 'Update Links' when opening a Word doc that
> contains missing links, through Word.
>
> My printing routine is very simple. I just call Open(),
> PutActivePrinter() amd PrintOut(). My question is: is there any way to
> open a word doc in VBA and force Word to explicitly not update links?
>
> Thx in advance.
>
> Peter
>
>