问题 I have a macro that opens the Internet Explorer Dim IE As Object Set IE = CreateObject("InternetExplorer.Application") IE.Visible = True Later the macro interacts with other windows, so the IE loses the focus. But, after the other interactions, I need to send keys to the IE application. I searched how to activate again the IE Window, but none worked. I tried (1) Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long Public Sub test() Set acObj = GetObject(,