TableStyle.Duplicate Method
Duplicates the TableStyle object and returns a reference to the new copy.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Duplicate ( _
NewTableStyleName As Object _
) As TableStyle
'Usage
Dim instance As TableStyle
Dim NewTableStyleName As Object
Dim returnValue As TableStyle
returnValue = instance.Duplicate(NewTableStyleName)
TableStyle Duplicate(
Object NewTableStyleName
)
Parameters
NewTableStyleName
Type: System.ObjectThe name of the new table style.
Return Value
Type: Microsoft.Office.Interop.Excel.TableStyle
TableStyle
Remarks
If no name is specified, the Duplicate(Object) method uses the same default name as the user interface.