Collabora Office 21.06 Help
Returns a Long integer color value consisting of red, green, and blue components.
RGB (Red, Green, Blue)
Long
Red α ααααααβα ααα½αβαααβαα½α αααβααααΆαβαααΆαααΆαβαααβαααα α (α -α’α₯α₯) ααβαααβαααβααααΒ α
Green α ααααααβα ααα½αβαααβαα½α αααβααααΆαβαααΆαααΆαβαααβαααα (α -α’α₯α₯) ααβαααβαααβααααΒ α
Blue α ααααααβα ααα½αβαααβαα½α αααβααααΆαβαααΆαααΆαβαααβααα (α -α’α₯α₯) ααβαααβαααβααααΒ α
The color picker dialog helps computing red, green and blue components of a composite color. Changing the color of text and selecting Custom color displays the color picker dialog.
Sub ExampleColor
Dim lVar As Long
lVar = rgb(128,0,200)
MsgBox "The color " & lVar & " consists of:" & Chr(13) &_
"red= " & Red(lVar) & Chr(13)&_
"green= " & Green(lVar) & Chr(13)&_
"blue= " & Blue(lVar) & Chr(13) , 64,"colors"
End Sub