標題:
Chart seriescollection色彩等屬性設定
[打印本頁]
作者:
Scott090
時間:
2015-4-5 13:47
標題:
Chart seriescollection色彩等屬性設定
VBA程式繪製圖表,其中有線條及標記線條(框線) 都叫 .Format.line 沒有區別,而無法順利設定屬性
想利用鍵盤模擬來做設定;
請問哪個大大幫忙指導,謝謝
[attach]20587[/attach]
Sub test0()
With Application
.Dialogs(xlDialogSeriesOptions).Show '開啟 資料數列格式
.SendKeys "{down 2}", True '向下 2 次選 標記添滿
.SendKeys "{TAB}", True '右側選項
.SendKeys "s", True '實心添滿 (S)
.SendKeys "c", True '色彩(C)
.SendKeys "{right 4}{down 4}~", True '彩色盤 色別選取
.SendKeys "{TAB} 3", True '回左側選項
.SendKeys "{down}", True '線條色彩
.SendKeys "{tab}", True '右側選項
.SendKeys "N", True '無線條
.SendKeys "{tab} 2", True '回左側 線條色彩
.SendKeys "{down} 2", True '向下 2 次選 標記線條色彩
.SendKeys "{tab}", True '右側選項
.SendKeys "N", True '無線條
.SendKeys "{tab}~" '關閉 資料數列格式
End With
End Sub
複製代碼
作者:
Scott090
時間:
2015-4-5 14:01
回復
1#
Scott090
圖片是這一個
[attach]20588[/attach]
上面程式碼只是示意說明,不能用
謝謝
歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)