Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.19 KB

Excel.Workbook.UpdateLink.md

File metadata and controls

48 lines (29 loc) · 1.19 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.UpdateLink method (Excel)
vbaxl10.chm199160
vbaxl10.chm199160
Excel.Workbook.UpdateLink
2aef72cc-a820-3e91-1f46-50c739faf2bb
05/29/2019
medium

Workbook.UpdateLink method (Excel)

Updates a Microsoft Excel, DDE, or OLE link (or links).

Syntax

expression.UpdateLink (Name, Type)

expression A variable that represents a Workbook object.

Parameters

Name Required/Optional Data type Description
Name Optional Variant The name of the Microsoft Excel or DDE/OLE link to be updated, as returned from the LinkSources method.
Type Optional Variant One of the constants of XlLinkType specifying the type of link.

Remarks

When the UpdateLink method is called without any parameters, Excel defaults to updating all worksheet links.

Example

This example updates all links in the active workbook.

ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources

[!includeSupport and feedback]