Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.05 KB

Outlook.commandbutton.backcolor.md

File metadata and controls

32 lines (18 loc) · 1.05 KB
title ms.assetid ms.date ms.localizationpriority
CommandButton.BackColor Property (Outlook Forms Script)
099345c2-7b84-9c27-9d21-45d489b5a6e7
06/08/2017
medium

CommandButton.BackColor Property (Outlook Forms Script)

Returns or sets a Long that specifies the background color of the object. Read/write.

Syntax

expression.BackColor

expression A variable that represents a CommandButton object.

Remarks

Use any integer that represents a valid color. You can also specify a color by using the Visual Basic RGB function with red, green, and blue color components. The value of each color component is an integer that ranges from zero to 255. For example, you can specify teal blue as the integer value 4966415 or as red, green, and blue color components 15, 200, 75, as shown in the following example.

RGB(15,200,75)

You can only see the background color of an object if the BackStyle property is set to 1.

[!includeSupport and feedback]