Share via


Styles.Merge Method

Merges the styles from another workbook into the Styles collection.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Merge ( _
    Workbook As Object _
) As Object
'Usage
Dim instance As Styles
Dim Workbook As Object
Dim returnValue As Object

returnValue = instance.Merge(Workbook)
Object Merge(
    Object Workbook
)

Parameters

  • Workbook
    Type: System.Object

    Required Object. A Workbook object that represents the workbook containing styles to be merged.

Return Value

Type: System.Object

Remarks

The value of a merged range is specified in the cell of the range's upper-left corner.

See Also

Reference

Styles Interface

Styles Members

Microsoft.Office.Interop.Excel Namespace