- 帖子
- 5923
- 主題
- 13
- 精華
- 1
- 積分
- 5986
- 點名
- 0
- 作業系統
- win10
- 軟體版本
- Office 2010
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台灣基隆
- 註冊時間
- 2010-5-1
- 最後登錄
- 2022-1-23
        
|
16#
發表於 2012-4-6 17:11
| 只看該作者
回復 14# c_c_lai - With ActiveSheet.ChartObjects(oShape.Name).Chart
- .HasAxis(xlCategory, xlPrimary) = True
- ' .HasAxis(xlCategory, xlPrimary) = False
- ' 圖表上所存在的座標軸 此座標為 False 下面程式會錯誤
- .Axes(xlCategory).MajorTickMark = xlNone
- .Axes(xlCategory).TickLabelPosition = xlLow
- End With
- ActiveSheet.Shapes(oShape.Name).Left = Cells(3, 1).Left ' 設定此圖表實際擺放的 X、Y 座標位置。
- ActiveSheet.Shapes(oShape.Name).Top = Cells(3, 1).Top
- ' 將原本設定之高度調至適度位置
- ActiveSheet.Shapes(oShape.Name).Height = Cells(3, 1).Resize(20).Height
- ActiveSheet.Shapes(oShape.Name).Width = Cells(3, 1).Resize(, 10).Width
- '''*** InvertIfNegative, InvertColor 不適用這圖表的型態
- '****由於對圖表的涉獵尚少 所以正在尋找答案中 或請高手相助
- 'ActiveChart.SeriesCollection(1).InvertIfNegative = True
- 'ActiveChart.SeriesCollection(1).InvertColor = RGB(32, 178, 208)
- ' With ActiveChart.SeriesCollection(1).Format.Fill
- ' .Visible = msoTrue
- ' .ForeColor.RGB = RGB(255, 69, 0)
- ' .Transparency = 0
- ' .Solid
- 'End With
複製代碼 |
|