| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

VBA 起動中のInternetExplorerを操作する

提供: MyMemoWiki
2020年2月16日 (日) 04:33時点におけるPiroto (トーク | 投稿記録)による版
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

VBA 起動中のInternetExplorerを操作する

IE |

起動中のIEのツールバー、メニューバーを表示する

Dim shl    As Object
Dim w      As Object
Dim ie     As Object  'InternetExplorer

Set shl = CreateObject("Shell.Application")

For Each w In shl.Windows
    If TypeName(w.document) = "HTMLDocument" Then
        Set ie = w
        ie.Toolbar = 1
        ie.MenuBar = True
    End If
Next