LibreOffice 24.8 Help
Returns a Long integer color value consisting of red, green, and blue components, according to VBA color formula.
RGB (Red, Green, Blue)
Long
Because of the VBA compatibility mode (Option VBASupport 1), the Long value is calculated as
Result = red + greenĂ—256 + blueĂ—65536.
Option VBASupport 1
Sub ExampleRGBVBA
Dim lVar As Long
lVar = rgb(128,0,200)
Print lVar; ' returns 13107328
End Sub