rgdsjunior, experimente esta funcao
Function HexToLongRGB(sHexVal As String) As Long
Dim lRed As Long
Dim lGreen As Long
Dim lBlue As Long
lRed = CLng("&H" & Left$(sHexVal, 2))
lGreen = CLng("&H" & Mid$(sHexVal, 3, 2))
lBlue = CLng("&H" & Right$(sHexVal, 2))
HexToLongRGB = vba.RGB(lRed, lGreen, lBlue)
End Function
Click em se a resposta foi util!
Postado : 02/04/2018 12:43 pm