色彩常數Color constants

您可以在代碼的任何位置使用下列常數來取代實際值。The following constants can be used anywhere in your code in place of the actual values.


常數Constant Value 描述Description
vbBlackvbBlack 0x00x0 黑色Black
vbRedvbRed 0xFF0xFF 紅色Red
vbGreenvbGreen 0xFF000xFF00 綠色Green
vbYellowvbYellow 0xFFFF0xFFFF 黃色Yellow
vbBluevbBlue 0xFF00000xFF0000 藍色Blue
vbMagentavbMagenta 0xFF00FF0xFF00FF 洋紅色Magenta
vbCyanvbCyan 0xFFFF000xFFFF00 青色Cyan
vbWhitevbWhite 0xFFFFFF0xFFFFFF 白色White

另請參閱See also

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.