0
A
回答
0
這個例子VBA宏將關閉所有值的折線圖中超過50元。你可以修改這個與if
語句來實現自定義的條件格式
Sub ColourOver50()
Set cht = ActiveSheet.ChartObjects(1).Chart
Set s = cht.SeriesCollection(1)
vals = s.Values
For x = LBound(vals) To UBound(vals)
If vals(x) > 50 Then
With s.Points(x)
.Format.Line.ForeColor.RGB = RGB(255, 0, 0)
End With
End If
Next x
End Sub
+0
嗨泰勒,這個宏是否適用於圖?多圖怎麼樣?謝謝! –
+0
你只需將cht設置爲你想要的圖表即可。請爲每個圖表循環應用於所有圖表 – TylerDurden
相關問題
- 1. 在excel表格中插入圖像
- 2. excel表格中的條件格式
- 3. Excel:格式條件
- 4. Excel條件格式
- 5. Excel(條件格式)
- 6. Excel - 條件格式
- 7. 條件格式 - Excel
- 8. 如何插入表格插件在ClEditor
- 9. 在Excel圖表上應用格式
- 10. 如何在Excel上使用hh:mm:ss格式進行條件格式化
- 11. Excel條件格式如果公式
- 12. Excel條件格式與參考表
- 13. 如何插入在條件
- 14. 如何在特定條件不滿意時插入表格
- 15. 在表格視圖上方插入UITextField
- 16. 如何在大型Excel表格中插入零單元格?
- 17. Excel - 條件格式2條件
- 18. Excel條件格式宏
- 19. Excel中的條件格式
- 20. 條件格式化Excel
- 21. excel vba條件格式
- 22. Excel條件格式規則
- 23. Excel條件每行格式
- 24. Excel 2016條件格式
- 25. Excel Interop條件格式
- 26. Excel條件格式幫助
- 27. Excel條件格式 - 色標
- 28. excel條件格式與msgbox
- 29. 條件格式Excel 2010
- 30. Excel條件格式日期
退房[條件格式Excel Charts](http://peltiertech.com/conditional-formatting-of-excel-charts/)。 –