How to lock links

E

EEvans

I need help to lock all of my links automatically. Currently I have a macro
that calls Dialogs(wdDialogEditLinks).Show to allow the user to lock the
links. My problem is that some users just close the dialog box without
locking the links. When this happens, we have problems with the hyperlinks
in the document. What can I do?

Thanks,

Eric
 
J

Jean-Guy Marcil

EEvans was telling us:
EEvans nous racontait que :
I need help to lock all of my links automatically. Currently I have
a macro that calls Dialogs(wdDialogEditLinks).Show to allow the user
to lock the links. My problem is that some users just close the
dialog box without locking the links. When this happens, we have
problems with the hyperlinks in the document. What can I do?

Something like this:

Dim myField As Field

For Each myField In Selection.Fields
myField.Locked = True
Next

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top