Excel VBAリファレンス(Chartsコレクション、Chartオブジェクト編)

2024-01-07

Chartオブジェクトはグラフシートまたはワークシート上の埋め込みグラフを表し、Chartsコレクションはブック内の全てのグラフシートを表します。

Chartsコレクションに含まれるオブジェクトはグラフシートのみのため、全ての埋め込みグラフを取得したい場合は、ChartObjectsコレクションを使用する必要があります。
⇒Excel VBAの主なオブジェクトについては、Excel VBAリファレンス(Excel VBAのオブジェクト構造編)を参照して下さい。

■Chartsコレクションの詳細

Chartsコレクションで提供されているメソッドとプロパティは下表の通りです。

Chartsコレクションのメソッド

Add2メソッド
説明 グラフをグリッドに直接挿入する
定義 Function Add2([Before As Variant], [After As Variant], [Count As Variant = 1], [NewLayout As Boolean]) As Chart
Copyメソッド
説明 シートをブック内の他の場所にコピーする
定義 Sub Copy([Before As Variant], [After As Variant])
Deleteメソッド
説明 オブジェクトを削除する
定義 Sub Delete()
Moveメソッド
説明 グラフをブック内の他の場所に移動する
定義 Sub Move([Before As Variant], [After As Variant])
PrintOutメソッド
説明 オブジェクトを印刷する
定義 Sub PrintOut([From As Variant], [To As Variant], [Copies As Variant = 1], [Preview As Boolean = False], [ActivePrinter As Variant], [PrintToFile As Boolean = False], [Collate As Boolean = False], [PrToFileName As Variant], [IgnorePrintAreas As Boolean = False])
PrintPreviewメソッド
説明 オブジェクトの印刷プレビューを表示する
定義 Sub PrintPreview([EnableChanges As Boolean])
Selectメソッド
説明 オブジェクトを選択する
定義 Sub Select([Replace As Boolean])

Chartsコレクションのプロパティ

Applicationプロパティ(読み取り専用)
説明 オブジェクトを作成したアプリケーションを表すApplicationオブジェクトを取得
定義 Property Application() As Application
Countプロパティ(読み取り専用)
説明 コレクションに含まれるオブジェクトの数を取得
定義 Property Count() As Long
Creatorプロパティ(読み取り専用)
説明 オブジェクトを作成したアプリケーションの整数値を取得

(※)XlCreator列挙体は、以下の値のみ。
xlCreatorCode(1480803660):Macintosh版Excelでのシグネチャ

定義 Property Creator() As XlCreator
HPageBreaksプロパティ(読み取り専用)
説明 シートの水平方向の改ページを表すHPageBreaksコレクションを取得
定義 Property HPageBreaks() As HPageBreaks
Itemプロパティ(読み取り専用)
説明 コレクションから単一のオブジェクトを取得
定義 Property Item(Index As Variant) As Object
Parentプロパティ(読み取り専用)
説明 指定されたオブジェクトの親オブジェクトを取得
定義 Property Parent() As Object
Visibleプロパティ
説明 オブジェクトを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property Visible() As Variant
VPageBreaksプロパティ(読み取り専用)
説明 シートの垂直方向の改ページを表すVPageBreaksコレクションを取得
定義 Property VPageBreaks() As VPageBreaks

■Chartオブジェクトの詳細

Chartオブジェクトで提供されているメソッドとプロパティは下表の通りです。

Chartオブジェクトのメソッド

Activateメソッド
説明 指定されたグラフをアクティブにする
定義 Sub Activate()
ApplyChartTemplateメソッド
説明 標準またはユーザ設定のグラフの種類をグラフに適用する
定義 Sub ApplyChartTemplate(Filename As String)
ApplyDataLabelsメソッド
説明 グラフの全てのデータ系列にデータラベルを付ける

(※)XlDataLabelsType列挙体の値は、以下の通り。
xlDataLabelsShowBubbleSizes(6):絶対値に対するバブルのサイズを表示
xlDataLabelsShowLabel(4):データ要素の属する分類名
xlDataLabelsShowLabelAndPercent(5):全体のパーセンテージと要素の項目名
xlDataLabelsShowNone(-4142):データ ラベルなし
xlDataLabelsShowPercent(3):全体のパーセンテージ
xlDataLabelsShowValue(2):データ要素の属する既定値

定義 Sub ApplyDataLabels([Type As XlDataLabelsType = xlDataLabelsShowValue], [LegendKey As Boolean = False], [AutoText As Boolean], [HasLeaderLines As Boolean], [ShowSeriesName As Boolean], [ShowCategoryName As Boolean], [ShowValue As Boolean], [ShowPercentage As Boolean], [ShowBubbleSize As Boolean], [Separator As Variant])
ApplyLayoutメソッド
説明 リボンに表示されるレイアウトを適用する

(※)XlChartType列挙体については、別表参照。

定義 Sub ApplyLayout(Layout As Long, [ChartType As XlChartType])
Axesメソッド
説明 単一の軸を表すAxisオブジェクトまたは全ての軸を表すAxesコレクションを取得する

(※)XlAxisType列挙体の値は、以下の通り。
xlCategory(1):軸は項目を表示
xlSeriesAxis(3):軸はデータ系列を表示
xlValue(2):軸は値を表示

(※)XlAxisGroup列挙体の値は、以下の通り。
xlPrimary(1):プライマリ軸グループ
xlSecondary(2):セカンダリ軸グループ

定義 Function Axes([Type As XlAxisType], [AxisGroup As XlAxisGroup = xlPrimary]) As Object
ChartGroupsメソッド
説明 単一のグラフグループを表すChartGroupオブジェクトまたは全てのグラフグループを表すChartGroupsコレクションを取得する
定義 Function ChartGroups([Index As Variant]) As Object
ChartObjectsメソッド
説明 単一の埋め込みグラフを表すChartObjectオブジェクトまたは全ての埋め込みグラフを表すChartObjectsコレクションを取得する
定義 Function ChartObjects([Index As Variant]) As Object
ChartWizardメソッド
説明 グラフのプロパティを変更する

(※)XlChartType列挙体については、別表参照。

(※)XlRowCol列挙体の値は、以下の通り。
xlColumns(2):データ系列を列に入力
xlRows(1):データ系列を行に入力

定義 Sub ChartWizard([Source As Variant], [Gallery As XlChartType], [Format As Variant], [PlotBy As XlRowCol], [CategoryLabels As Variant], [SeriesLabels As Variant], [HasLegend As Boolean], [Title As Variant], [CategoryTitle As Variant], [ValueTitle As Variant], [ExtraTitle As Variant])
CheckSpellingメソッド
説明 オブジェクトのスペルをチェックする

(※)MsoLanguageID列挙体については、Excel VBAの覚え書(Worksheetsコレクション、Worksheetオブジェクト編)参照。

定義 Sub CheckSpelling([CustomDictionary As Variant], [IgnoreUppercase As Boolean], [AlwaysSuggest As Boolean], [SpellLang As MsoLanguageID])
ClearToMatchColorStyleメソッド
説明 グラフの全ての色をグラフに適用されている色スタイルにリセットする
定義 Sub ClearToMatchColorStyle()
ClearToMatchStyleメソッド
説明 グラフ要素の書式をグラフに適用されているスタイルにリセットする
定義 Sub ClearToMatchStyle()
Copyメソッド
説明 シートをブック内の他の場所にコピーする
定義 Sub Copy([Before As Variant], [After As Variant])
CopyPictureメソッド
説明 オブジェクトをクリップボードへ画像としてコピーする

(※)XlPictureAppearance列挙体の値は、以下の通り。
xlPrinter(2):ピクチャを印刷する時と同じ形でコピー
xlScreen(1):ピクチャを画面表示に近い形でコピー

(※)XlCopyPictureFormat列挙体の値は、以下の通り。
xlBitmap(2):ビットマップ(ラスター)形式でコピーされた画像
xlPicture(-4147):ベクター形式でコピーされた画像

定義 Sub CopyPicture([Appearance As XlPictureAppearance = xlScreen], [Format As XlCopyPictureFormat = xlPicture], [Size As XlPictureAppearance = xlPrinter])
Deleteメソッド
説明 オブジェクトを削除する
定義 Sub Delete()
Evaluateメソッド
説明 使用する名前をオブジェクトまたは値に変換する
定義 Function Evaluate(Name As Variant) As Variant
Exportメソッド
説明 グラフを画像ファイルとしてエクスポートする
定義 Function Export(Filename As String, [FilterName As Variant], [Interactive As Boolean = False]) As Boolean
ExportAsFixedFormatメソッド
説明 指定した形式のファイルにエクスポートする

(※)XlFixedFormatType列挙体の値は、以下の通り。
xlTypePDF(0):PDF
xlTypeXPS(1):XPS

(※)XlFixedFormatQuality列挙体の値は、以下の通り。
xlQualityMinimum(1):最小限の品質
xlQualityStandard(0):標準品質

定義 Sub ExportAsFixedFormat(Type As XlFixedFormatType, [Filename As Variant], [Quality As XlFixedFormatQuality], [IncludeDocProperties As Boolean], [IgnorePrintAreas As Boolean], [From As Variant], [To As Variant], [OpenAfterPublish As Boolean], [FixedFormatExtClassPtr As Variant])
FullSeriesCollectionメソッド
説明 フィルタ処理された系列を表すSeriesオブジェクトを取得する
定義 Function FullSeriesCollection([Index As Variant]) As Series
GetChartElementメソッド
説明 指定したx座標とy座標のグラフ要素に関する情報を取得する

(※)XlChartItem列挙体の値は、以下の通り。
xlAxis(21):軸
xlAxisTitle(17):軸ラベル
xlChartArea(2):グラフエリア
xlChartTitle(4):グラフタイトル
xlCorners(6):丸み
xlDataLabel(0):データラベル
xlDataTable(7):データテーブル
xlDisplayUnitLabel(30):表示単位ラベル
xlDownBars(20):陰線
xlDropLines(26):降下線
xlErrorBars(9):誤差範囲
xlFloor(23):床面
xlHiLoLines(25):高低線
xlLeaderLines(29):引き出し線
xlLegend(24):凡例
xlLegendEntry(12):凡例文字列
xlLegendKey(13):凡例マーカー
xlMajorGridlines(15):目盛線
xlMinorGridlines(16)補助目盛り線
xlNothing(28):なし
xlPivotChartDropZone(32):ピボットグラフドロップエリア
xlPivotChartFieldButton(31):ピボットグラフフィールドボタン
xlPlotArea(19):プロットエリア
xlRadarAxisLabels(27):レーダー軸ラベル
xlSeries(3):系列
xlSeriesLines(22):区分線
xlShape(14):図形
xlTrendline(8):近似曲線
xlUpBars(18):陽線
xlWalls(5):壁面
xlXErrorBars(10):X誤差範囲
xlYErrorBars(11):Y誤差範囲

定義 Sub GetChartElement(x As Long, y As Long, ElementID As XlChartItem, Arg1 As Long, Arg2 As Long)
Locationメソッド
説明 グラフを新しい位置に移動する

(※)XlChartLocation列挙体の値は、以下の通り。
xlLocationAsNewSheet(1):新しいシートに移動する
xlLocationAsObject(2):既存のシートに埋め込む
xlLocationAutomatic(3):Excelがグラフの場所を制御する

定義 Function Location(Where As XlChartLocation, [Name As Variant]) As Chart
Moveメソッド
説明 グラフをブック内の他の場所に移動する
定義 Sub Move([Before As Variant], [After As Variant])
OLEObjectsメソッド
説明 単一のOLEオブジェクトを表すOLEObjectオブジェクトまたは全てのOLEオブジェクトを表すOLEObjectsコレクションを取得する
定義 Function OLEObjects([Index As Variant]) As Object
Pasteメソッド
説明 クリップボードから指定されたグラフにデータを貼り付ける

(※)XlPasteType列挙体の値は、以下の通り。
xlPasteAll(-4104):全てを貼り付ける
xlPasteAllExceptBorders(7):輪郭以外の全てを貼り付ける
xlPasteAllMergingConditionalFormats(14):全てを貼り付け、条件付き書式をマージする
xlPasteAllUsingSourceTheme(13):ソースのテーマを使用して全てを貼り付ける
xlPasteColumnWidths(8):コピーした列の幅を貼り付ける
xlPasteComments(-4144):コメントを貼り付ける
xlPasteFormats(-4122):コピーしたソースの形式を貼り付ける
xlPasteFormulas(-4123):数式を貼り付ける
xlPasteFormulasAndNumberFormats(11):数式と数値の書式を貼り付ける
xlPasteValidation(6):入力規則を貼り付ける
xlPasteValues(-4163):値を貼り付ける
xlPasteValuesAndNumberFormats(12):値と数値の書式を貼り付ける

定義 Sub Paste([Type As XlPasteType = xlPasteAll])
PrintOutメソッド
説明 オブジェクトを印刷する
定義 Sub PrintOut([From As Variant], [To As Variant], [Copies As Variant = 1], [Preview As Boolean = False], [ActivePrinter As Variant], [PrintToFile As Boolean = False], [Collate As Boolean = False], [PrToFileName As Variant], [IgnorePrintAreas As Boolean = False])
PrintPreviewメソッド
説明 オブジェクトの印刷プレビューを表示する
定義 Sub PrintPreview([EnableChanges As Boolean])
Protectメソッド
説明 グラフを保護し、変更できなくする
定義 Sub Protect([Password As Variant], [DrawingObjects As Boolean = True], [Contents As Boolean = True], [Scenarios As Boolean =True], [UserInterfaceOnly As Boolean = False])
Refreshメソッド
説明 指定したグラフが常に最新の状態で表示されるように設定する
定義 Sub Refresh()
SaveAsメソッド
説明 グラフまたはワークシートへの変更を別のファイルに保存する

(※)XlFileFormat列挙体については、Excel VBAの覚え書(Applicationオブジェクト編)参照。

定義 Sub SaveAs(Filename As String, [FileFormat As XlFileFormat], [Password As Variant], [WriteResPassword As Variant], [ReadOnlyRecommended As Boolean = False], [CreateBackup As Boolean = False], [AddToMru As Boolean = False], [TextCodepage As Variant], [TextVisualLayout As Variant], [Local As Boolean = False])
SaveChartTemplateメソッド
説明 使用可能なグラフテンプレートの一覧にユーザ設定テンプレートを保存する
定義 Sub SaveChartTemplate(Filename As String)
Selectメソッド
説明 オブジェクトを選択する
定義 Sub Select([Replace As Boolean])
SeriesCollectionメソッド
説明 単一のデータ系列を表すSeriesオブジェクトまたは全てのデータ系列を表すSeriesCollectionコレクションを取得する
定義 Function SeriesCollection([Index As Variant]) As Object
SetBackgroundPictureメソッド
説明 グラフの背景のグラフィックスを設定する
定義 Sub SetBackgroundPicture(Filename As String)
SetDefaultChartメソッド
説明 グラフを新規に作成する時に使用するグラフテンプレートの名前を指定する
定義 Sub SetDefaultChart(Name As Variant)
SetElementメソッド
説明 グラフのグラフ要素を設定する

(※)MsoChartElementType列挙体については、別表参照。

定義 Sub SetElement(Element As MsoChartElementType)
SetSourceDataメソッド
説明 グラフにおけるソースデータの範囲を設定する

(※)XlRowCol列挙体の値は、以下の通り。
xlColumns(2):データ系列を列に入力
xlRows(1):データ系列を行に入力

定義 Sub SetSourceData(Source As Range, [PlotBy As XlRowCol])
Unprotectメソッド
説明 シートまたはブックの保護を解除する
定義 Sub Unprotect([Password As Variant])

Chartオブジェクトのプロパティ

Applicationプロパティ(読み取り専用)
説明 オブジェクトを作成したアプリケーションを表すApplicationオブジェクトを取得
定義 Property Application() As Application
AutoScalingプロパティ
説明 3Dグラフをスケールして同等の2Dグラフに近いサイズに調整するかどうかを設定/取得(Trueの場合、調整する)
定義 Property AutoScaling() As Boolean
BackWallプロパティ(読み取り専用)
説明 3Dグラフの背壁を表すWallsオブジェクトを取得
定義 Property BackWall() As Walls
BarShapeプロパティ
説明 棒グラフで使用する図形を設定/取得

(※)XlBarShape列挙体の値は、以下の通り。
xlBox(0):ボックス。
xlConeToMax(5):円錐(値の箇所が平面)
xlConeToPoint(4):円錐(値の箇所が頂点)
xlCylinder(3):円柱
xlPyramidToMax(2):ピラミッド(値の箇所が平面)
xlPyramidToPoint(1):ピラミッド(値の箇所が頂点)

定義 Property BarShape() As XlBarShape
CategoryLabelLevelプロパティ
説明 カテゴリラベルのソース元のレベルを設定/取得

(※)XlCategoryLabelLevel列挙体の値は、以下の通り。
xlCategoryLabelLevelAll(-1):全ての項目ラベルレベルに項目ラベルを設定(既定)
xlCategoryLabelLevelCustom(-2):項目ラベルにリテラルデータを設定
xlCategoryLabelLevelNone(-3):項目ラベルを設定しない

定義 Property CategoryLabelLevel() As XlCategoryLabelLevel
ChartAreaプロパティ(読み取り専用)
説明 グラフ領域全体を表すChartAreaオブジェクトを取得
定義 Property ChartArea() As ChartArea
ChartColorプロパティ
説明 グラフの配色を設定/取得
定義 Property ChartColor() As Variant
ChartStyleプロパティ
説明 グラフのスタイルを設定/取得
定義 Property ChartStyle() As Variant
ChartTitleプロパティ(読み取り専用)
説明 指定したグラフのタイトルを表すChartTitleオブジェクトを取得
定義 Property ChartTitle() As ChartTitle
ChartTypeプロパティ
説明 グラフの種類を設定/取得

(※)XlChartType列挙体については、別表参照。

定義 Property ChartType() As XlChartType
CodeNameプロパティ(読み取り専用)
説明 オブジェクトのコード名を取得
定義 Property CodeName() As String
Creatorプロパティ(読み取り専用)
説明 オブジェクトを作成したアプリケーションの整数値を取得

(※)XlCreator列挙体は、以下の値のみ。
xlCreatorCode(1480803660):Macintosh版Excelでのシグネチャ

定義 Property Creator() As XlCreator
DataTableプロパティ(読み取り専用)
説明 グラフデータテーブルを表すDataTableオブジェクトを取得
定義 Property DataTable() As DataTable
DepthPercentプロパティ
説明 3Dグラフの奥行きをグラフ幅に対する割合で設定/取得
定義 Property DepthPercent() As Long
DisplayBlanksAsプロパティ
説明 空白のセルをグラフ上にプロットする方法を設定/取得

(※)XlDisplayBlanksAs列挙体の値は、以下の通り。
xlInterpolated(3):値をグラフに挿入
xlNotPlotted(1):空白セルをプロットしない
xlZero(2):空白セルをゼロとしてプロット

定義 Property DisplayBlanksAs() As XlDisplayBlanksAs
Elevationプロパティ
説明 3-Dグラフビューの仰角を表す角度を設定/取得
定義 Property Elevation() As Long
Floorプロパティ(読み取り専用)
説明 3-Dグラフの床面を表すFloorオブジェクトを取得
定義 Property Floor() As Floor
GapDepthプロパティ
説明 3-Dグラフのデータ系列の間隔をマーカー幅に対する割合で設定/取得
定義 Property GapDepth() As Long
HasAxisプロパティ
説明 グラフに指定した軸が存在するかどうかを設定/取得(Trueの場合、存在する)

(※)XlAxisType列挙体の値は、以下の通り。
xlCategory(1):軸は項目を表示
xlSeriesAxis(3):軸はデータ系列を表示
xlValue(2):軸は値を表示

(※)XlAxisGroup列挙体の値は、以下の通り。
xlPrimary(1):プライマリ軸グループ
xlSecondary(2):セカンダリ軸グループ

定義 Property HasAxis(Index1 As XlAxisType, [Index2 As XlAxisGroup]) As Boolean
HasDataTableプロパティ
説明 グラフにデータテーブルが存在するかどうかを設定/取得(Trueの場合、存在する)
定義 Property HasDataTable() As Boolean
HasLegendプロパティ
説明 グラフに凡例が存在するかどうかを設定/取得(Trueの場合、存在する)
定義 Property HasLegend() As Boolean
HasTitleプロパティ
説明 軸やグラフのタイトルを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property HasTitle() As Boolean
HeightPercentプロパティ
説明 3Dグラフの高さをグラフ幅に対する割合で設定/取得
定義 Property HeightPercent() As Long
Hyperlinksプロパティ(読み取り専用)
説明 グラフのハイパーリンクを表すHyperlinksコレクションを取得
定義 Property Hyperlinks() As Hyperlinks
Indexプロパティ(読み取り専用)
説明 コレクション内でのオブジェクトのインデックス番号を取得
定義 Property Index() As Long
Legendプロパティ(読み取り専用)
説明 グラフの凡例を表すLegendオブジェクトを取得
定義 Property Legend() As Legend
MailEnvelopeプロパティ(読み取り専用)
説明 文書の電子メールヘッダを表すMsoEnvelopeオブジェクトを取得
定義 Property MailEnvelope() As MsoEnvelope
Nameプロパティ
説明 オブジェクトの名前を設定/取得
定義 Property Name() As String
Nextプロパティ(読み取り専用)
説明 次のシートを表すWorksheetオブジェクトまたはChartオブジェクトを取得
定義 Property Next() As Object
PageSetupプロパティ(読み取り専用)
説明 指定したオブジェクトのページ設定情報を表すPageSetupオブジェクトを取得
定義 Property PageSetup() As PageSetup
Parentプロパティ(読み取り専用)
説明 指定したオブジェクトの親オブジェクトを取得
定義 Property Parent() As Object
Perspectiveプロパティ
説明 3-Dグラフビューのパースペクティブを設定/取得
定義 Property Perspective() As Long
PivotLayoutプロパティ(読み取り専用)
説明 ピボットテーブルレポートのフィールドの配置およびピボットグラフレポートの軸の配置を表すPivotLayout オブジェクトを取得
定義 Property PivotLayout() As PivotLayout
PlotAreaプロパティ(読み取り専用)
説明 グラフのプロット領域を表すPlotAreaオブジェクトを取得
定義 Property PlotArea() As PlotArea
PlotByプロパティ
説明 データ系列の方向を設定/取得

(※)XlRowCol列挙体の値は、以下の通り。
xlColumns(2):データ系列を列に入力
xlRows(1):データ系列を行に入力

定義 Property PlotBy() As XlRowCol
PlotVisibleOnlyプロパティ
説明 表示されているセルだけをプロットするかどうかを設定/取得(Trueの場合、表示セルだけプロットする)
定義 Property PlotVisibleOnly() As Boolean
Previousプロパティ(読み取り専用)
説明 前のシートを表すWorksheetオブジェクトまたはChartオブジェクトを取得
定義 Property Previous() As Object
PrintedCommentPagesプロパティ(読み取り専用)
説明 現在のグラフに対して印刷されるコメントページの数を取得
定義 Property PrintedCommentPages() As Long
ProtectContentsプロパティ(読み取り専用)
説明 シートの内容を保護しているかどうかを取得(Trueの場合、保護している)
定義 Property ProtectContents() As Boolean
ProtectDataプロパティ
説明 系列数式の変更を禁止するかどうかを設定/取得(Trueの場合、禁止する)
定義 Property ProtectData() As Boolean
ProtectDrawingObjectsプロパティ(読み取り専用)
説明 図形が保護されているかどうかを取得(Trueの場合、保護されている)
定義 Property ProtectDrawingObjects() As Boolean
ProtectFormattingプロパティ
説明 グラフの書式の変更を禁止しているかどうかを設定/取得(Trueの場合、禁止している)
定義 Property ProtectFormatting() As Boolean
ProtectionModeプロパティ(読み取り専用)
説明 画面上での変更のみの保護を設定しているかどうかを取得(Trueの場合、保護している)
定義 Property ProtectionMode() As Boolean
ProtectSelectionプロパティ
説明 グラフ要素の選択を禁止しているかどうかを設定/取得(Trueの場合、禁止している)
定義 Property ProtectSelection() As Boolean
RightAngleAxesプロパティ
説明 グラフの軸が回転角または仰角とは無関係に直角に交っているかどうかを設定/取得(Trueの場合、直角に交っている)
定義 Property RightAngleAxes() As Variant
Rotationプロパティ
説明 3Dグラフビューの回転角度(z軸を中心としたプロット領域の回転角度)を設定/取得
定義 Property Rotation() As Variant
SeriesNameLevelプロパティ
説明 系列名のソースのレベルを設定/取得

(※)XlSeriesNameLevel列挙体の値は、以下の通り。
xlSeriesNameLevelAll(-1):全ての系列名レベルに系列名を設定(既定)
xlSeriesNameLevelCustom(-2):系列名にリテラルデータを設定
xlSeriesNameLevelNone(-3):項目ラベルを設定しない

定義 Property SeriesNameLevel() As XlSeriesNameLevel
Shapesプロパティ(読み取り専用)
説明 グラフシート上の全ての図形を表すShapesコレクションを取得
定義 Property Shapes() As Shapes
ShowAllFieldButtonsプロパティ
説明 ピボットグラフの全てのフィールドボタンを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property ShowAllFieldButtons() As Boolean
ShowAxisFieldButtonsプロパティ
説明 ピボットグラフの軸フィールドボタンを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property ShowAxisFieldButtons() As Boolean
ShowDataLabelsOverMaximumプロパティ
説明 値が値軸の最大値より大きい場合にデータラベルを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property ShowDataLabelsOverMaximum() As Boolean
ShowExpandCollapseEntireFieldButtonsプロパティ
説明 [フィールド全体を展開]および[フィールド全体を折りたたむ]ボタンを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property ShowExpandCollapseEntireFieldButtons() As Boolean
ShowLegendFieldButtonsプロパティ
説明 ピボットグラフの凡例フィールドボタンを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property ShowLegendFieldButtons() As Boolean
ShowReportFilterFieldButtonsプロパティ
説明 ピボットグラフのレポートフィルターフィールドボタンを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property ShowReportFilterFieldButtons() As Boolean
ShowValueFieldButtonsプロパティ
説明 ピボットグラフの値フィールドボタンを表示するかどうかを設定/取得(Trueの場合、表示する)
定義 Property ShowValueFieldButtons() As Boolean
SideWallプロパティ(読み取り専用)
説明 3Dグラフの側壁を表すWallsオブジェクトを取得
定義 Property SideWall() As Walls
Tabプロパティ(読み取り専用)
説明 グラフのタブを表すTabオブジェクトを取得
定義 Property Tab() As Tab
Visibleプロパティ
説明 オブジェクトを表示するかどうかを表すXlSheetVisibility値を設定/取得

(※)XlSheetVisibility列挙体の値は、以下の通り。
xlSheetHidden(0):ユーザがメニューで再表示できるシートを非表示にする
xlSheetVeryHidden(2):シートを非表示にする
xlSheetVisible(-1):シートを表示する

定義 Property Visible() As XlSheetVisibility
Wallsプロパティ(読み取り専用)
説明 3Dグラフの壁を表すWallsオブジェクトを取得
定義 Property Walls() As Walls

XlChartType列挙体

Name Value
XlChartType列挙体
xl3DArea -4098
xl3DAreaStacked 78
xl3DAreaStacked100 79
xl3DBarClustered 60
xl3DBarStacked 61
xl3DBarStacked100 62
xl3DColumn -4100
xl3DColumnClustered 54
xl3DColumnStacked 55
xl3DColumnStacked100 56
xl3DLine -4101
xl3DPie -4102
xl3DPieExploded 70
xlArea 1
xlAreaStacked 76
xlAreaStacked100 77
xlBarClustered 57
xlBarOfPie 71
xlBarStacked 58
xlBarStacked100 59
xlBubble 15
xlBubble3DEffect 87
xlColumnClustered 51
xlColumnStacked 52
xlColumnStacked100 53
xlConeBarClustered 102
xlConeBarStacked 103
xlConeBarStacked100 104
xlConeCol 105
xlConeColClustered 99
xlConeColStacked 100
xlConeColStacked100 101
xlCylinderBarClustered 95
xlCylinderBarStacked 96
xlCylinderBarStacked100 97
xlCylinderCol 98
xlCylinderColClustered 92
xlCylinderColStacked 93
xlCylinderColStacked100 94
xlDoughnut -4120
xlDoughnutExploded 80
xlLine 4
xlLineMarkers 65
xlLineMarkersStacked 66
xlLineMarkersStacked100 67
xlLineStacked 63
xlLineStacked100 64
xlPie 5
xlPieExploded 69
xlPieOfPie 68
xlPyramidBarClustered 109
xlPyramidBarStacked 110
xlPyramidBarStacked100 111
xlPyramidCol 112
xlPyramidColClustered 106
xlPyramidColStacked 107
xlPyramidColStacked100 108
xlRadar -4151
xlRadarFilled 82
xlRadarMarkers 81
xlStockHLC 88
xlStockOHLC 89
xlStockVHLC 90
xlStockVOHLC 91
xlSurface 83
xlSurfaceTopView 85
xlSurfaceTopViewWireframe 86
xlSurfaceWireframe 84
xlXYScatter -4169
xlXYScatterLines 74
xlXYScatterLinesNoMarkers 75
xlXYScatterSmooth 72
xlXYScatterSmoothNoMarkers 73

MsoChartElementType列挙体

Name Value
MsoChartElementType列挙体
msoElementChartFloorNone 1200
msoElementChartFloorShow 1201
msoElementChartTitleAboveChart 2
msoElementChartTitleCenteredOverlay 1
msoElementChartTitleNone 0
msoElementChartWallNone 1100
msoElementChartWallShow 1101
msoElementDataLabelBestFit 210
msoElementDataLabelBottom 209
msoElementDataLabelCallout 211
msoElementDataLabelCenter 202
msoElementDataLabelInsideBase 204
msoElementDataLabelInsideEnd 203
msoElementDataLabelLeft 206
msoElementDataLabelNone 200
msoElementDataLabelOutSideEnd 205
msoElementDataLabelRight 207
msoElementDataLabelShow 201
msoElementDataLabelTop 208
msoElementDataTableNone 500
msoElementDataTableShow 501
msoElementDataTableWithLegendKeys 502
msoElementErrorBarNone 700
msoElementErrorBarPercentage 702
msoElementErrorBarStandardDeviation 703
msoElementErrorBarStandardError 701
msoElementLegendBottom 104
msoElementLegendLeft 103
msoElementLegendLeftOverlay 106
msoElementLegendNone 100
msoElementLegendRight 101
msoElementLegendRightOverlay 105
msoElementLegendTop 102
msoElementLineDropHiLoLine 804
msoElementLineDropLine 801
msoElementLineHiLoLine 802
msoElementLineNone 800
msoElementLineSeriesLine 803
msoElementPlotAreaNone 1000
msoElementPlotAreaShow 1001
msoElementPrimaryCategoryAxisBillions 374
msoElementPrimaryCategoryAxisLogScale 375
msoElementPrimaryCategoryAxisMillions 373
msoElementPrimaryCategoryAxisNone 348
msoElementPrimaryCategoryAxisReverse 351
msoElementPrimaryCategoryAxisShow 349
msoElementPrimaryCategoryAxisThousands 372
msoElementPrimaryCategoryAxisTitleAdjacentToAxis 301
msoElementPrimaryCategoryAxisTitleBelowAxis 302
msoElementPrimaryCategoryAxisTitleHorizontal 305
msoElementPrimaryCategoryAxisTitleNone 300
msoElementPrimaryCategoryAxisTitleRotated 303
msoElementPrimaryCategoryAxisTitleVertical 304
msoElementPrimaryCategoryAxisWithoutLabels 350
msoElementPrimaryCategoryGridLinesMajor 334
msoElementPrimaryCategoryGridLinesMinor 333
msoElementPrimaryCategoryGridLinesMinorMajor 335
msoElementPrimaryCategoryGridLinesNone 332
msoElementPrimaryValueAxisBillions 356
msoElementPrimaryValueAxisLogScale 357
msoElementPrimaryValueAxisMillions 355
msoElementPrimaryValueAxisNone 352
msoElementPrimaryValueAxisShow 353
msoElementPrimaryValueAxisThousands 354
msoElementPrimaryValueAxisTitleAdjacentToAxis 306
msoElementPrimaryValueAxisTitleBelowAxis 308
msoElementPrimaryValueAxisTitleHorizontal 311
msoElementPrimaryValueAxisTitleNone 306
msoElementPrimaryValueAxisTitleRotated 309
msoElementPrimaryValueAxisTitleVertical 310
msoElementPrimaryValueGridLinesMajor 330
msoElementPrimaryValueGridLinesMinor 329
msoElementPrimaryValueGridLinesMinorMajor 331
msoElementPrimaryValueGridLinesNone 328
msoElementSecondaryCategoryAxisBillions 378
msoElementSecondaryCategoryAxisLogScale 379
msoElementSecondaryCategoryAxisMillions 377
msoElementSecondaryCategoryAxisNone 358
msoElementSecondaryCategoryAxisReverse 361
msoElementSecondaryCategoryAxisShow 359
msoElementSecondaryCategoryAxisThousands 376
msoElementSecondaryCategoryAxisTitleAdjacentToAxis 313
msoElementSecondaryCategoryAxisTitleBelowAxis 314
msoElementSecondaryCategoryAxisTitleHorizontal 317
msoElementSecondaryCategoryAxisTitleNone 312
msoElementSecondaryCategoryAxisTitleRotated 315
msoElementSecondaryCategoryAxisTitleVertical 316
msoElementSecondaryCategoryAxisWithoutLabels 360
msoElementSecondaryCategoryGridLinesMajor 342
msoElementSecondaryCategoryGridLinesMinor 341
msoElementSecondaryCategoryGridLinesMinorMajor 343
msoElementSecondaryCategoryGridLinesNone 340
msoElementSecondaryValueAxisBillions 366
msoElementSecondaryValueAxisLogScale 367
msoElementSecondaryValueAxisMillions 365
msoElementSecondaryValueAxisNone 362
msoElementSecondaryValueAxisShow 363
msoElementSecondaryValueAxisThousands 364
msoElementSecondaryValueAxisTitleAdjacentToAxis 319
msoElementSecondaryValueAxisTitleBelowAxis 320
msoElementSecondaryValueAxisTitleHorizontal 323
msoElementSecondaryValueAxisTitleNone 318
msoElementSecondaryValueAxisTitleRotated 321
msoElementSecondaryValueAxisTitleVertical 322
msoElementSecondaryValueGridLinesMajor 338
msoElementSecondaryValueGridLinesMinor 337
msoElementSecondaryValueGridLinesMinorMajor 339
msoElementSecondaryValueGridLinesNone 336
msoElementSeriesAxisGridLinesMajor 346
msoElementSeriesAxisGridLinesMinor 345
msoElementSeriesAxisGridLinesMinorMajor 347
msoElementSeriesAxisGridLinesNone 344
msoElementSeriesAxisNone 368
msoElementSeriesAxisReverse 371
msoElementSeriesAxisShow 369
msoElementSeriesAxisTitleHorizontal 327
msoElementSeriesAxisTitleNone 324
msoElementSeriesAxisTitleRotated 325
msoElementSeriesAxisTitleVertical 326
msoElementSeriesAxisWithoutLabeling 370
msoElementTrendlineAddExponential 602
msoElementTrendlineAddLinear 601
msoElementTrendlineAddLinearForecast 603
msoElementTrendlineAddTwoPeriodMovingAverage 604
msoElementTrendlineNone 600
msoElementUpDownBarsNone 900
msoElementUpDownBarsShow 901

国本温子(著),緑川吉行(著),できるシリーズ編集部(著)
出版社:インプレス
発売日:2022/3/23
単行本(ソフトカバー):A5判/912ページ

大村あつし(著),古川順平(著)
出版社:技術評論社
発売日:2021/1/9
単行本(ソフトカバー):A5判/800ページ

高橋宣成(著)
出版社:技術評論社
発売日:2019/11/25
単行本(ソフトカバー):B5変形判/576ページ

リファレンス

Posted by hides