http://www.relief.jp/itnote/archives/excel-vba-check-object-variables-local-window.php