Skip to content

Files

Latest commit

 

History

History
41 lines (24 loc) · 1.3 KB

Excel.Workbook.UpdateFromFile.md

File metadata and controls

41 lines (24 loc) · 1.3 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.UpdateFromFile method (Excel)
vbaxl10.chm199159
vbaxl10.chm199159
Excel.Workbook.UpdateFromFile
f5148b60-9b25-8a12-5cf3-40103dcff2a3
05/29/2019
medium

Workbook.UpdateFromFile method (Excel)

Updates a read-only workbook from the saved disk version of the workbook if the disk version is more recent than the copy of the workbook that is loaded in memory. If the disk copy hasn't changed since the workbook was loaded, the in-memory copy of the workbook isn't reloaded.

Syntax

expression.UpdateFromFile

expression A variable that represents a Workbook object.

Remarks

This method is useful when a workbook is opened as read-only by user A and opened as read/write by user B. If user B saves a newer version of the workbook to disk while user A still has the workbook open, user A cannot get the updated copy without closing and reopening the workbook and losing view settings. The UpdateFromFile method updates the in-memory copy of the workbook from the disk file.

Example

This example updates the active workbook from the disk version of the file.

ActiveWorkbook.UpdateFromFile

[!includeSupport and feedback]