Share via


Propriété Workbook.UpdateLinks (Excel)

Renvoie ou définit une constante XlUpdateLink indiquant le paramètre d’un classeur pour la mise à jour des liens OLE incorporés. Lecture-écriture.

Syntaxe

expression. UpdateLinks

Expression Variable qui représente un objet Workbook .

Exemple

Dans cet exemple, Microsoft Excel détermine le paramètre de mise à jour des liaisons et en informe l'utilisateur.

Sub UseUpdateLinks() 
 
 Dim wkbOne As Workbook 
 
 Set wkbOne = Application.Workbooks(1) 
 
 Select Case wkbOne.UpdateLinks 
 Case xlUpdateLinksAlways 
 MsgBox "Links will always be updated " & _ 
 "for the specified workbook." 
 Case xlUpdateLinksNever 
 MsgBox "Links will never be updated " & _ 
 "for the specified workbook." 
 Case xlUpdateLinksUserSetting 
 MsgBox "Links will update according " & _ 
 "to user settting for the specified workbook." 
 End Select 
 
End Sub

Assistance et commentaires

Avez-vous des questions ou des commentaires sur Office VBA ou sur cette documentation ? Consultez la rubrique concernant l’assistance pour Office VBA et l’envoi de commentaires afin d’obtenir des instructions pour recevoir une assistance et envoyer vos commentaires.