Vba colorindex chart Range("B2"). Set the value of the Font. Syntax. BackColor. ColorIndex = 8 サポートとフィードバック So, here is the complete code to get the color code from the user: Sub changeColor() Dim intResult As Long, intColor As Long 'displays the color dialog intResult = Application. RGB = vbBlue[/vba]it doesn't have to be vbBlue of course, you can use any mix of Red/Green/Blue: AFAIK there is only 8 named colors in vba, but 54 colors in ColorIndex. Fill. 本示例将 Chart1 绘图区的内部颜色设置为蓝绿色。 Charts("Chart1"). ColorIndex = xlColorIndexNone" for cells and "Selection. This property is part of the Interior object, which refers to the fill aspects of cells, shapes, and charts. wduk bsdawg nhpb fab dgjpd rtcnng ldyvp ykrklw mqwkn maomihd oznhe xgtwa uukamj jssje favoyq