Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
Merges changes from one workbook into an open workbook.
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.
ActiveWorkbook.MergeWorkbook "Book1.xls"
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.