LibreOffice 24.8 Help
Returns a Long integer colour value consisting of red, green, and blue components, according to VBA colour 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