組み込みダイアログボックス
Excelには、約259の「組み込みダイアログボックス」があります。
これらの「組み込みダイアログボックス」を表示するには、ApplicationオブジェクトのDialogs【ダイアログス】プロパティを使用してすべての「組み込みダイアログボックス」を表すDialogs【ダイアログス】コレクションオブジェクトを取得し、引数に各「組み込みダイアログボックス」を表す定数を指定してDialog【ダイアログ】オブジェクトを取得します。
取得したDialog【ダイアログ】オブジェクトのShow【ショウ】メソッドを使用して「組み込みダイアログボックス」を表示します。
Dialogs【ダイアログス】プロパティ
すべての「組み込みダイアログボックス」を表すDialogs【ダイアログス】コレクションオブジェクトを取得するには、ApplicationオブジェクトのDialogs【ダイアログス】プロパティを使用します。
取得したDialogs【ダイアログス】コレクションオブジェクトの引数に各「組み込みダイアログボックス」を表す定数を指定することにより各「組み込みダイアログボックス」を表すDialog【ダイアログ】オブジェクトが取得できます。
Dialogs【ダイアログス】プロパティの書式と設定値(引数)の説明
オブジェクト.Dialogs( Index )
【戻り値】Dialogオブジェクト
- オブジェクト(必須)
Applicationオブジェクトを指定します。 - Index(必須)
各「組み込みダイアログボックス」を表す
XlBuiltinDialog列挙型の定数または定数の値を指定します。
Dialog.Show【ダイアログ ショウ】メソッド
指定した「組み込みダイアログボックス」を表示するには、DialogオブジェクトのShow【ショウ】メソッドを使用します。
Dialog.Show【ダイアログショウ】メソッドの書式と設定値(引数)の説明
[]内は省略可能です。
オブジェクト.Show( [Arg1, Arg2, ・・・Arg30] )
- オブジェクト(必須)
Dialogオブジェクトを指定します。 - Arg1‐Arg30(省略可)
各「組み込みダイアログボックス」の初期値のプロパティを指定します。
Argはargument【アギューメント】の略で「引数」という意味があります。
定数の値で指定した組み込みダイアログボックスを表示するコード例
Sub ダイアログ() Dim 値 As Long On Error GoTo エラー処理 値 = Application.InputBox("ダイアログボックスの定数の値を入力してください", Type:=1) Application.Dialogs(値).Show Exit Sub エラー処理: MsgBox "現在の状態ではこのダイアログボックスは表示できません" End Sub
XlBuiltinDialog【ビルトインダイアログ】の定数の一覧
名前 | 値 | 説明 |
---|---|---|
xlDialogOpen | 1 | [ファイルを開く] |
xlDialogOpenLinks | 2 | [リンク元を開く] |
xlDialogSaveAs | 5 | [名前を付けて保存] |
xlDialogFileDelete | 6 | [ファイルの削除] |
xlDialogPageSetup | 7 | [ページ設定 (ページ)] |
xlDialogPrint | 8 | [印刷] |
xlDialogPrinterSetup | 9 | [プリンターの設定] |
xlDialogArrangeAll | 12 | [ウィンドウの整列] |
xlDialogWindowSize | 13 | [ウィンドウ サイズ] |
xlDialogWindowMove | 14 | [ウィンドウの移動] |
xlDialogRun | 17 | [マクロ] |
xlDialogSetPrintTitles | 23 | [印刷タイトルの設定] |
xlDialogFont | 26 | [フォントの設定] |
xlDialogDisplay | 27 | [画面設定] |
xlDialogProtectDocument | 28 | [シートの保護] |
xlDialogCalculation | 32 | [計算方法の設定] |
xlDialogExtract | 35 | [抽出] |
xlDialogDataDelete | 36 | [データの削除] |
xlDialogSort | 39 | [並べ替え] |
xlDialogDataSeries | 40 | [連続データ] |
xlDialogTable | 41 | [テーブル] |
xlDialogFormatNumber | 42 | [セルの書式設定 (表示形式)] |
xlDialogAlignment | 43 | [セルの書式設定 (配置)] |
xlDialogStyle | 44 | [フォントの設定] |
xlDialogBorder | 45 | [セルの書式設定 (罫線)] |
xlDialogCellProtection | 46 | [セルの書式設定 (保護)] |
xlDialogColumnWidth | 47 | [列幅] |
xlDialogClear | 52 | [消去] |
xlDialogPasteSpecial | 53 | [形式を選択して貼り付け] |
xlDialogEditDelete | 54 | [削除] |
xlDialogInsert | 55 | [セルの挿入] |
xlDialogPasteNames | 58 | [名前の貼り付け] |
xlDialogDefineName | 61 | [名前の定義] |
xlDialogCreateNames | 62 | [名前の作成] |
xlDialogFormulaGoto | 63 | [ジャンプ] |
xlDialogFormulaFind | 64 | [検索] |
xlDialogGalleryArea | 67 | [オートフォーマット (面)] |
xlDialogGalleryBar | 68 | [オートフォーマット (横棒)] |
xlDialogGalleryColumn | 69 | [オートフォーマット (縦棒)] |
xlDialogGalleryLine | 70 | [オートフォーマット (折れ線)] |
xlDialogGalleryPie | 71 | [オートフォーマット (円)] |
xlDialogGalleryScatter | 72 | [オートフォーマット (散布図)] |
xlDialogCombination | 73 | [複合] |
xlDialogGridlines | 76 | [グラフ オプション (目盛線)] |
xlDialogAxes | 78 | [軸] |
xlDialogAttachText | 80 | [文字の追加] |
xlDialogPatterns | 84 | [セルの書式設定 (パターン)] |
xlDialogMainChart | 85 | [メイン グラフ] |
xlDialogOverlay | 86 | [重ね合わせグラフ] |
xlDialogScale | 87 | [倍率] |
xlDialogFormatLegend | 88 | [凡例の書式設定] |
xlDialogFormatText | 89 | [文字書式] |
xlDialogParse | 91 | [区切り位置] |
xlDialogUnhide | 94 | [ウィンドウの再表示] |
xlDialogWorkspace | 95 | [作業状態設定] |
xlDialogActivate | 103 | [ウィンドウの選択] |
xlDialogCopyPicture | 108 | [図のコピー] |
xlDialogDeleteName | 110 | [名前の定義] |
xlDialogDeleteFormat | 111 | [セルの書式設定 (表示形式)] |
xlDialogNew | 119 | [新規作成 (標準)] |
xlDialogRowHeight | 127 | [行の高さ] |
xlDialogFormatMove | 128 | [移動の書式設定] |
xlDialogFormatSize | 129 | [サイズの書式設定] |
xlDialogFormulaReplace | 130 | [置換] |
xlDialogSelectSpecial | 132 | [選択オプション] |
xlDialogApplyNames | 133 | [名前の引用] |
xlDialogReplaceFont | 134 | [フォントの設定] |
xlDialogSplit | 137 | [列の分割、行の分割] |
xlDialogOutline | 142 | [アウトライン設定] |
xlDialogSaveWorkbook | 145 | [名前を付けて保存] |
xlDialogCopyChart | 147 | [グラフのコピー] |
xlDialogFormatFont | 150 | [フォントの設定] |
xlDialogNote | 154 | [コメントの挿入] |
xlDialogSetUpdateStatus | 159 | [更新状態の設定] |
xlDialogColorPalette | 161 | [オプション (色)] |
xlDialogChangeLink | 166 | [リンクの変更] |
xlDialogAppMove | 170 | [移動 (アプリケーション)] |
xlDialogAppSize | 171 | [送信] |
xlDialogMainChartType | 185 | [メイン グラフの種類] |
xlDialogOverlayChartType | 186 | [グラフの種類の重ね合わせ] |
xlDialogOpenMail | 188 | [メールを開く] |
xlDialogSendMail | 189 | [メッセージ (HTML 形式)] |
xlDialogStandardFont | 190 | [フォントの設定] |
xlDialogConsolidate | 191 | [統合の設定] |
xlDialogSortSpecial | 192 | [並べ替え] |
xlDialogGallery3dArea | 193 | [オートフォーマット (3-D 面)] |
xlDialogGallery3dColumn | 194 | [オートフォーマット (3-D 縦棒)] |
xlDialogGallery3dLine | 195 | [オートフォーマット (3-D 折れ線)] |
xlDialogGallery3dPie | 196 | [オートフォーマット (3-D 円)] |
xlDialogView3d | 197 | [3D 表示] |
xlDialogGoalSeek | 198 | [ゴール シーク] |
xlDialogWorkgroup | 199 | [グループ編集] |
xlDialogFillGroup | 200 | [グループの入力] |
xlDialogUpdateLink | 201 | [リンクの更新] |
xlDialogPromote | 202 | [グループの解除] |
xlDialogDemote | 203 | [グループ化] |
xlDialogShowDetail | 204 | [詳細データの表示] |
xlDialogObjectProperties | 207 | [オブジェクトのプロパティ] |
xlDialogSaveNewObject | 208 | 「新しいオブジェクトの保存] |
xlDialogApplyStyle | 212 | [スタイル] |
xlDialogAssignToObject | 213 | [オブジェクトへの登録] |
xlDialogObjectProtection | 214 | [オブジェクトの保護] |
xlDialogCreatePublisher | 217 | [発行側の作成] |
xlDialogSubscribeTo | 218 | [引用] |
xlDialogShowToolbar | 220 | [ユーザー設定 (オプション)] |
xlDialogPrintPreview | 222 | [印刷プレビュー] |
xlDialogEditColor | 223 | [色の編集] |
xlDialogFormatMain | 225 | [メイングラフ/重ね合わせグラフ] |
xlDialogFormatOverlay | 226 | [重ね合わせグラフの設定] |
xlDialogEditSeries | 228 | [系列の編集] |
xlDialogDefineStyle | 229 | [スタイル] |
xlDialogGalleryRadar | 249 | [オートフォーマット (レーダー)] |
xlDialogEditionOptions | 251 | [エディション オプション] |
xlDialogZoom | 256 | [ズーム] |
xlDialogInsertObject | 259 | [オブジェクトの挿入 (新規作成)] |
xlDialogSize | 261 | [サイズ] |
xlDialogMove | 262 | [移動] |
xlDialogFormatAuto | 269 | [オートフォーマット] |
xlDialogGallery3dBar | 272 | [オートフォーマット (横棒)] |
xlDialogGallery3dSurface | 273 | [オートフォーマット (等高線)] |
xlDialogCustomizeToolbar | 276 | [ユーザー設定 (オプション)] |
xlDialogWorkbookAdd | 281 | [シートの移動またはコピー] |
xlDialogWorkbookMove | 282 | [シートの移動またはコピー] |
xlDialogWorkbookCopy | 283 | [シートの移動またはコピー] |
xlDialogWorkbookOptions | 284 | [シート名の変更] |
xlDialogSaveWorkspace | 285 | [作業状態の保存] |
xlDialogChartWizard | 288 | [グラフ ウィザード] |
xlDialogAssignToTool | 293 | [ツールに割り当て] |
xlDialogPlacement | 300 | [表示位置] |
xlDialogFillWorkgroup | 301 | [ワークグループの入力] |
xlDialogWorkbookNew | 302 | [挿入 (標準)] |
xlDialogScenarioCells | 305 | [シナリオの登録と管理] |
xlDialogScenarioAdd | 307 | [シナリオの追加] |
xlDialogScenarioEdit | 308 | [シナリオの追加] |
xlDialogScenarioSummary | 311 | [シナリオの情報] |
xlDialogPivotTableWizard | 312 | [ピボットテーブル/ピボットグラフ ウィザード] |
xlDialogPivotFieldProperties | 313 | [ピボット フィールド プロパティ] |
xlDialogOptionsCalculation | 318 | [オプション (計算方法)] |
xlDialogOptionsEdit | 319 | [オプション (編集)] |
xlDialogOptionsView | 320 | [オプション (表示)] |
xlDialogAddinManager | 321 | [アドイン] |
xlDialogMenuEditor | 322 | [メニュー エディター] |
xlDialogAttachToolbars | 323 | [ブックへのツールバーの登録] |
xlDialogOptionsChart | 325 | [オプション (グラフ)] |
xlDialogVbaInsertFile | 328 | [VBA 挿入ファイル] |
xlDialogVbaProcedureDefinition | 330 | [VBA 手順定義] |
xlDialogMailLogon | 339 | [回覧先] |
xlDialogInsertPicture | 342 | [図の挿入] |
xlDialogGalleryDoughnut | 344 | [オートフォーマット (ドーナッツ)] |
xlDialogChartTrend | 350 | [グラフ トレンド] |
xlDialogWorkbookInsert | 354 | [挿入 (標準)] |
xlDialogOptionsTransition | 355 | [オプション (移行)] |
xlDialogOptionsGeneral | 356 | [オプション (全般)] |
xlDialogFilterAdvanced | 370 | [フィルター オプションの設定] |
xlDialogMailNextLetter | 378 | [次の手紙の送信] |
xlDialogDataLabel | 379 | [データ ラベル] |
xlDialogInsertTitle | 380 | [タイトル/軸ラベルの挿入] |
xlDialogFontProperties | 381 | [セルの書式設定 (フォント)] |
xlDialogMacroOptions | 382 | [マクロ オプション] |
xlDialogWorkbookUnhide | 384 | [再表示] |
xlDialogWorkbookName | 386 | [シート名の変更] |
xlDialogGalleryCustom | 388 | [オートフォーマット (フォーマットの種類)] |
xlDialogAddChartAutoformat | 390 | [ユーザー設定のグラフ種類の追加] |
xlDialogChartAddData | 392 | [グラフ追加データ] |
xlDialogTabOrder | 394 | [タブ オーダーの設定] |
xlDialogSubtotalCreate | 398 | [集計の設定] |
xlDialogWorkbookTabSplit | 415 | [ブックのタブ分割] |
xlDialogWorkbookProtect | 417 | [ブックの保護] |
xlDialogScrollbarProperties | 420 | [スクロール バーのプロパティ] |
xlDialogPivotShowPages | 421 | [ピボット表示ページ] |
xlDialogTextToColumns | 422 | [区切り位置] |
xlDialogFormatCharttype | 423 | [グラフの種類] |
xlDialogPivotFieldGroup | 433 | [ピボット フィールド グループ] |
xlDialogPivotFieldUngroup | 434 | [ピボット フィールド グループ解除] |
xlDialogCheckboxProperties | 435 | [チェック ボックスのプロパティ] |
xlDialogLabelProperties | 436 | [ラベルのプロパティ] |
xlDialogListboxProperties | 437 | [リスト ボックスのプロパティ] |
xlDialogEditboxProperties | 438 | [編集ボックスのプロパティ] |
xlDialogOpenText | 441 | [テキストを開く] |
xlDialogPushbuttonProperties | 445 | [プッシュ ボタンのプロパティ] |
xlDialogFilter | 447 | [オートフィルター] |
xlDialogFunctionWizard | 450 | [関数の挿入] |
xlDialogSaveCopyAs | 456 | [コピーを名前を付けて保存] |
xlDialogOptionsListsAdd | 458 | [オプション (ユーザー設定リスト)] |
xlDialogSeriesAxes | 460 | [系列軸] |
xlDialogSeriesX | 461 | [系列 X] |
xlDialogSeriesY | 462 | [データ系列の書式設定 (名前/値)] |
xlDialogErrorbarX | 463 | [Errorbar X] |
xlDialogErrorbarY | 464 | [Errorbar Y] |
xlDialogFormatChart | 465 | [グラフの書式設定] |
xlDialogSeriesOrder | 466 | [系列の順序] |
xlDialogMailEditMailer | 470 | [メール編集メーラー] |
xlDialogStandardWidth | 472 | [標準の幅] |
xlDialogScenarioMerge | 473 | [シナリオのコピー] |
xlDialogProperties | 474 | [プロパティ (ファイルの概要)] |
xlDialogSummaryInfo | 474 | [プロパティ (ファイルの概要)] |
xlDialogFindFile | 475 | [ファイルを開く] |
xlDialogActiveCellFont | 476 | [セルの書式設定 (フォント)] |
xlDialogVbaMakeAddin | 478 | [VBA 作成アドイン] |
xlDialogFileSharing | 481 | [ブックの共有 (編集)] |
xlDialogAutoCorrect | 485 | [オートコレクト (オートコレクト)] |
xlDialogCustomViews | 493 | [ユーザー設定のビュー] |
xlDialogSeriesShape | 504 | [系列の形状] |
xlDialogChartOptionsDataLabels | 505 | [グラフ オプション データ ラベル] |
xlDialogChartOptionsDataTable | 506 | [グラフ オプション データ テーブル] |
xlDialogSetBackgroundPicture | 509 | [シートの背景] |
xlDialogDataValidation | 525 | [データの入力規則 (設定)] |
xlDialogChartType | 526 | [グラフの種類] |
xlDialogChartLocation | 527 | [グラフの場所] |
xlDialogExternalDataProperties | 530 | [外部データのプロパティ] |
xlDialogChartSourceData | 540 | [グラフの元データ] |
xlDialogSeriesOptions | 557 | [系列オプション] |
xlDialogPivotTableOptions | 567 | [ピボットテーブル オプション] |
xlDialogPivotSolveOrder | 568 | [ピボット解決順序] |
xlDialogPivotCalculatedField | 570 | [ピボット集計フィールド] |
xlDialogPivotCalculatedItem | 572 | [ピボット集計アイテム] |
xlDialogConditionalFormatting | 583 | [条件付き書式の設定] |
xlDialogInsertHyperlink | 596 | [ハイパーリンクの挿入] |
xlDialogProtectSharing | 620 | [共有ブックの保護] |
xlDialogOptionsME | 647 | [オプション (インターナショナル)] |
xlDialogPublishAsWebPage | 653 | [Web ページとして発行] |
xlDialogPhonetic | 656 | [ふりがなの設定 (ふりがな)] |
xlDialogImportTextFile | 666 | [テキスト ファイルのインポート] |
xlDialogNewWebQuery | 667 | [新しい Web クエリ] |
xlDialogWebOptionsGeneral | 683 | [Web オプション (全般)] |
xlDialogWebOptionsFiles | 684 | [Web オプション (ファイル)] |
xlDialogWebOptionsPictures | 685 | [Web オプション (図)] |
xlDialogWebOptionsEncoding | 686 | [Web オプション (エンコード)] |
xlDialogWebOptionsFonts | 687 | [Web オプション (フォント)] |
xlDialogPivotClientServerSet | 689 | [ピボット クライアント サーバー セット] |
xlDialogEvaluateFormula | 709 | [数式の検証] |
xlDialogDataLabelMultiple | 723 | [データ ラベル複数] |
xlDialogChartOptionsDataLabelMultiple | 724 | [グラフ オプション データ ラベル複数] |
xlDialogSearch | 731 | [通常のファイル検索] |
xlDialogErrorChecking | 732 | [エラー チェック] |
xlDialogPropertyFields | 754 | [プロパティ フィールド] |
xlDialogWebOptionsBrowsers | 773 | [Web オプション (ブラウザー)] |
xlDialogCreateList | 796 | [リストの作成 ] |
xlDialogPermission | 832 | [アクセス許可] |
xlDialogMyPermission | 834 | [アクセス許可] |
xlDialogDocumentInspector | 862 | [ドキュメント検査] |
xlDialogNameManager | 977 | [名前の管理] |
xlDialogNewName | 978 | [新しい名前] |
xlDialogSetTupleEditorOnRows | 1107 | [行での Tuple エディターの設定] |
xlDialogSetTupleEditorOnColumns | 1108 | [列での Tuple エディターの設定] |
xlDialogSetManager | 1109 | [セットの管理] |
xlDialogSparklineInsertLine | 1133 | [スパークラインの折れ線の挿入] |
xlDialogSparklineInsertColumn | 1134 | [スパークラインの縦棒の挿入] |
xlDialogSparklineInsertWinLoss | 1135 | [スパークラインの勝敗の挿入] |
xlDialogPivotTableWhatIfAnalysisSettings | 1153 | [ピボットテーブルの What-If 分析の設定] |
xlDialogSlicerSettings | 1179 | [スライサーの設定] |
xlDialogSlicerCreation | 1182 | [スライサー作成] |
xlDialogPivotTableSlicerConnections | 1183 | [ピボットテーブルのスライサーの接続] |
xlDialogSlicerPivotTableConnections | 1184 | [スライサー ピボットテーブル接続] |
xlDialogSetMDXEditor | 1208 | [MDX エディターの設定] |
xlDialogRecommendedPivotTables | 1258 | [おすすめピボットテーブル] |
xlDialogManageRelationships | 1271 | [リレーションシップの管理] |
xlDialogCreateRelationship | 1272 | [リレーションシップの作成] |
以上で、組み込みダイアログボックス Dialogオブジェクトについての解説を終了します。ありがとうございました。