Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

How to lock links

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EEvans - 23 Mar 2006 22:15 GMT
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
Jean-Guy Marcil - 24 Mar 2006 15:23 GMT
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

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.