目次
VBIDEライブラリとは?
「VBIDEライブラリ」は、「Microsoft Visual Basic for Applications Extensibility 5.3」を参照設定することで使用できるようになるライブラリのことです。
実態は、「C:\Program Files (x86)\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB」になります。
「VBIDEライブラリ」は、VBEをコードから操作するためのクラス群が多数定義されています。
VBIDEライブラリの構造
VBIDEライブラリの構造は下記のようになっています。
要素 | 数 |
---|---|
クラス | 20 |
列挙型(enum) | 9 |
クラス一覧
クラス名 | プロパティ数 | メソッド数 | 説明 | 説明 |
---|---|---|---|---|
AddIn | 7 | 0 | アドイン | |
Addins | 3 | 2 | アドインのコレクション | |
CodeModule | 10 | 7 | ||
CodePane | 7 | 3 | ||
CodePanes | 3 | 1 | ||
CommandBarEvents | 0 | 0 | イベント1個 | |
Events | 2 | 0 | ||
LinkedWindows | 2 | 3 | ||
Properties | 3 | 1 | プロパティのコレクション | |
Property | 7 | 0 | プロパティ | |
Reference | 11 | 0 | 参照設定 | |
References | 3 | 4 | 参照設定のコレクション | イベント2個 |
ReferencesEvents | 0 | 0 | イベント2個 | |
VBComponent | 10 | 3 | ||
VBComponents | 3 | 5 | ||
VBE | 12 | 0 | トップレベルのオブジェクトを表す | |
VBProject | 14 | 2 | プロジェクト | |
VBProjects | 3 | 4 | プロジェクトのコレクション | |
Window | 12 | 2 | ウィンドウ | |
Windows | 3 | 2 | ウィンドウのコレクション |
対になるクラス
以下のメンバクラスとコレクションクラスは1対1で対応します。
メンバクラスのCollectionプロパティでコレクションクラスを参照することができ、
メンバクラス | コレクションクラス | 内容 |
---|---|---|
AddIn | Addins | アドイン |
CodePane | CodePanes | コードペイン |
Property | Properties | プロパティ |
Reference | References | 参照設定 |
VBComponent | VBComponents | コンポーネント |
VBProject | VBProjects | プロジェクト |
Window | Windows | ウィンドウ |
列挙型一覧
列挙型名 | 使用クラス.プロパティ | 要素数 | 説明 |
---|---|---|---|
vbext_CodePaneview | CodePane.CodePaneView | 2 | |
vbext_ComponentType | VBComponent.Type | 5 | |
vbext_ProcKind | CodeModule | 4 | |
vbext_ProjectProtection | VBProject.Protection | 2 | |
vbext_ProjectType | VBProject.Type | 2 | |
vbext_RefKind | Reference.Type | 2 | |
vbext_VBAMode | VBProject.Mode | 3 | |
vbext_WindowState | Window.WindowState | 3 | |
vbext_WindowType | Window.Type | 14 |
コメント