Syntax

expression.MergeWorkbook(Filename)

expression A variable that represents a Workbook object.

Parameters

Name Required/Optional Data Type Description
Filename Required Variant The file name of the workbook that contains the changes to be merged into the open workbook.

Example

This example merges changes from Book1.xls into the active workbook.

Visual Basic for Applications
ActiveWorkbook.MergeWorkbook "Book1.xls"
merge Merge changes in one workbook to another? merge workbook Merge Workbook Method MergeWorkbook MergeWorkbook Method Update current workbook with all changes made to second workbook?

See also: