Partager via


TableStyles.Add Method

Creates a new TableStyle object and adds it to the collection.

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

Syntax

'Declaration
Function Add ( _
    TableStyleName As String _
) As TableStyle
'Usage
Dim instance As TableStyles
Dim TableStyleName As String
Dim returnValue As TableStyle

returnValue = instance.Add(TableStyleName)
TableStyle Add(
    string TableStyleName
)

Parameters

  • TableStyleName
    Type: System.String

    The name of the table style.

Return Value

Type: Microsoft.Office.Interop.Excel.TableStyle
TableStyle

See Also

Reference

TableStyles Interface

TableStyles Members

Microsoft.Office.Interop.Excel Namespace