傳回給定顏色代碼的綠色成分。
Green(Color As Long)
Integer
Color:長整數表示式,用於指定要傳回綠色成分的顏色代碼。
5 無效的程序呼叫
Sub ExampleColor
Dim lVar As Long
lVar = rgb(128,0,200)
msgbox "The color " & lVar & " contains the components:"& Chr(13) &_
"red= " & red(lVar) & Chr(13) &_
"green= " & green(lVar) & Chr(13) &_
"blue= " & blue(lVar) & Chr(13) , 64,"colors"
end sub