MACRO - Retrieve Color Values from Selected Object

Any way with a macro to get color info and output text for example

CMYK color

C=125   M=58  Y=14  K=0

Parents
  • Here is an example for uniform fill color:

    Sub show_uni_fill_CMYK_values()
    
    Dim colorThis As Color
    
        Set colorThis = ActiveShape.Fill.UniformColor
        MsgBox "C: " & colorThis.CMYKCyan & vbCrLf & "M: " & colorThis.CMYKMagenta & vbCrLf & "Y: " & colorThis.CMYKYellow & vbCrLf & "K: " & colorThis.CMYKBlack
    
    End Sub

    That looks like this in use:

Reply Children