Home > Excel VBA | GraphControl > Excel 3Dグラフの奥行設定(3D Chart Perspective)

Excel 3Dグラフの奥行設定(3D Chart Perspective)


エクセル3Dグラフの奥行きを設定するマクロを紹介します。

Excel VBA source code which set the value perspective of 3D Chart.

以下のコードは3Dグラフの奥行きの値を10 アップさせます。奥行きの範囲は0~100ですので、範囲外のケースでイグジットします。.Perspective のデータ型に合わせて変数 Perspective を Long で宣言してます。(Perspective as long も Perspective& も同じです。) 3Dグラフの壁面または床面を一旦select します。変数 Perspective に指定したグラフの現在の奥行きの値を格納します。そして10を足して設定します。

The code below is to increase perspective of chart by 10. Store the value of activechart.Perspective to var Perspective which is declared as long. The range of perspective is from 0 to 100, so that in case the elevation+10 exceed 100, exit sub.

GraphControl で使用しているコードです。

the code below is used in GraphControl.

Comments:0

Comment Form

Home > Excel VBA | GraphControl > Excel 3Dグラフの奥行設定(3D Chart Perspective)

Return to page top