I am trying to set an orangish color in the following manner:
WorkSheet.Range(\"A1:A5\").Interior.color = 49407
and
WorkShe
This will convert the hex-format colors you have to the RGB Long that Office uses for RGB colors:
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 = RGB(lRed, lGreen, lBlue)
End Function