2010-04-11 200 views

回答

2

這個答案有兩個注意事項:您沒有指定哪個版本的Excel,並且在v2004中測試了以下內容。

tell application "Microsoft Excel" 
    set theRange to range "A3:E3" 
    set interiorObject to interior object of theRange 
    set color index of interiorObject to 5 -- '5' is only a dummy value; change as needed. 
end tell 

每字典,color index是「顏色被指定爲索引值到當前調色板」。換句話說,安裝時淺灰色的顏色索引可能與其他地方不同。

+0

非常感謝您的回答。 – Satyam 2010-04-14 06:15:08

相關問題