Private Declare Function FindWindowEx Lib "user32" Alias _
"FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, _
ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
和
Private Declare Function FindWindow Lib "user32" Alias _
"FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
最後是我的code
Sub googleTrend()
Dim IE As Object
Dim myhtml As Object
[A5].CurrentRegion.Clear
Set IE = CreateObject("InternetExplorer.Application")