LibreOfficeDev 25.8 Help
ZMjZi‖Returns a Long integer color value consisting of red, green, and blue components, according to VBA color formula.
RGB (Red, Green, Blue)
Long
2XAYm‖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)
3KBtx‖ Print lVar; ' returns 13107328
End Sub