Creates a new style and adds it to the list of styles that are available for the current workbook.
'Declaration
Public Function Add( _
ByVal As String, _
Optional ByVal As String _
) As IStyle
'Usage
Dim instance As Styles
Dim name As String
Dim duplicatedStyle As String
Dim value As IStyle
value = instance.Add(name, duplicatedStyle)
Parameters
- name
- The new style name.
- duplicatedStyle
- The duplicated style name.