M
musicgold via OfficeKB.com
Hi All,
I am trying to use VBA to set the links in a Word doc to the Manual Update
setting.
I copy a table ( linked to another Excel doc) in this word doc and want to
set the fields to update only when I right click on the table and hit 'Update
link'. I not able to get my macro set the radio button in front of the Manual
update field. The code is given below. Please give some suggestions. Thanks.
MG.
Public Sub UpdateAllLinks()
' to make all links in the word document update only manually
Dim oFld As Word.Field
For Each oFld In ActiveDocument.Fields
If oFld.Type = wdFieldLink Then
With oFld
'.Locked = True ' this line locks the field. I can not manually update the
field.
End With
End If
Next
End Sub
I am trying to use VBA to set the links in a Word doc to the Manual Update
setting.
I copy a table ( linked to another Excel doc) in this word doc and want to
set the fields to update only when I right click on the table and hit 'Update
link'. I not able to get my macro set the radio button in front of the Manual
update field. The code is given below. Please give some suggestions. Thanks.
MG.
Public Sub UpdateAllLinks()
' to make all links in the word document update only manually
Dim oFld As Word.Field
For Each oFld In ActiveDocument.Fields
If oFld.Type = wdFieldLink Then
With oFld
'.Locked = True ' this line locks the field. I can not manually update the
field.
End With
End If
Next
End Sub