Excel Vba Interior
Use the interior property to return an interior object.
Excel vba interior. The following example sets the color for the interior of cell a1 to red. Utilizzare la proprietà interior per restituire un oggetto interior. Represents the interior of an object.
Im folgenden beispiel wird als füllfarbe für die zelle a1 die farbe rot festgelegt. Then use the colorindex property of the interior object to set the background color of a cell. Mutevole colori di sfondo nel excel vba è facile.
The vba color property is a more convenient way of defining the color of a cell interior border or font. Returns an interior object that represents the interior of the specified object. Sub setcolor worksheets sheet1 range a1 interior colorindex 8 cyan end sub support and feedback.
This example sets the interior color for cell a1 on sheet1 to cyan. Instead of using excel vba s colorindex property you can use the color property. 2 minutes to read 1.
The excel vba color property accepts long values representing a rgb color. Expression a variable that represents a range object. The following example sets the color for the interior of cell a1 to red.
Set cell a1 border color to red. The easiest way to set this property is to use the vba rgb function. Interior object excel 03 30 2019.