色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

VBA關閉在IE中打開的WORD

林雅南2年前21瀏覽0評論

VBA關閉在IE中打開的WORD?

把下面代碼中的“網頁標題”改為你要關閉的IE的標題,然后運行,即可關閉在IE中打開的WORD:

Dim oShellApp, oShellAppWindows, oWin Set oShellApp = CreateObject("Shell.Application"

) Set oShellAppWindows = oShellApp.Windows For Each oWin In oShellAppWindows If LCase(TypeName(oWin.document)) = "htmldocument" Then If InStr(1, oWin.locationname, "網頁標題", vbTextCompare) > 0 Then oWin.Navigate "about:blank" Exit For End If End If Next Set oWin = Nothing Set oShellApp = Nothing Set oShellAppWindows = Nothing

ie的if條件css,VBA關閉在IE中打開的WORD