lsygo

How to determine the type of Marker Symbol used for a Marker Line Symbol using VBA?

Discussion created by lsygo on Feb 3, 2012
Latest reply on Feb 6, 2012 by lsygo
By using TypeOf, I could tell a symbol is a Marker Line Symbol.
Can I use the same trick (something as follow) to check whether this Marker Line Symbol is build up from which type of Marker Symbol?

If TypeOf pSbl Is IMarkerLineSymbol Then
    MsgBox "It is a Marker Line Symbol"

    If TypeOf pSbl Is ICharacterMarkerSymbol Then
        MsgBox "It is a Character Marker Symbol"
    elseif TypeOf pSbl Is IPictureMarkerSymbol Then
        MsgBox "It is a Picture Marker Symbol"
    End if
End If

Outcomes