Muokkaa

Jaa


Styles.Merge method (Excel)

Merges the styles from another workbook into the Styles collection.

Syntax

expression.Merge (Workbook)

expression A variable that represents a Styles object.

Parameters

Name Required/Optional Data type Description
Workbook Required Variant A Workbook object that represents the workbook that contains styles to be merged.

Return value

Variant

Example

This example merges the styles from the workbook Template.xls into the active workbook.

ActiveWorkbook.Styles.Merge Workbook:=Workbooks("TEMPLATE.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.