2014-09-01 87 views

回答

1

使用VBA,此子副本打開IE應用程序的地址欄。

Public Sub Test() 
    Dim objWindow As Object 
    Dim objIEApp As Object 
    Dim objShell As Object 
    Dim objItem As Object 

    Set objShell = CreateObject("Shell.Application") 
    Set objWindow = objShell.Windows() 
    For Each objItem In objWindow 
     If LCase(objItem.FullName Like "*iexplore*") Then 
      Set objIEApp = objItem 
     End If 
    Next objItem 
    Debug.Print objIEApp.LocationURL 
End Sub 
+0

+1因爲你有超過1k代表和一個隨機的用戶名。也因爲這似乎是一個很好的解決方案。 – 2014-09-01 12:54:16

相關問題