QBColor function

Category: Color / Misc

Summary

QB 16-color palette value.

Syntax

QBColor(color) The required color argument is a whole number in the range 0-15.

Example

Example
This example uses the QBColor function to change the BackColor property of the form passed in as MyForm to the color indicated by ColorCode. QBColor accepts integer values between 0 and 15.
Sub ChangeBackColor (ColorCode As Integer, MyForm As Form)
MyForm.BackColor = QBColor(ColorCode)
End Sub

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/qbcolor-function

Back to Functions