Excel VBA:変数の初期化
オブジェクト変数の初期化
オブジェクト変数を初期化する場合、
Nothing
を使用する。
例)Bookオブジェクトの初期化
dim
work
as
Workbook
set
work =
Nothing