ErrorCheckingOptions.IndicatorColorIndex 屬性 (Excel)
會傳回或設定錯誤檢查選項的指標色彩。 可讀寫的 XlColorIndex。
語法
運算式。IndicatorColorIndex
表達 代表 ErrorCheckingOptions 物件的 變數。
註解
您可以藉由輸入對應的索引值,來指定特殊的指示器色彩。 使用 Colors 屬性可傳回目前的調色盤。
範例
在下列範例中,Microsoft Excel 會檢查錯誤檢查的指標色彩是否設定為預設系統色彩,並據此通知使用者。
Sub CheckIndexColor()
If Application.ErrorCheckingOptions.IndicatorColorIndex = xlColorIndexAutomatic Then
MsgBox "Your indicator color for error checking is set to the default system color."
Else
MsgBox "Your indicator color for error checking is not set to the default system color."
End If
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。