Hey guys!
I have a macro that opens an IE window and then does some stuff with it via SendKeys commands.
Usually it works fine - the IE window pops up on top of Excel and is the active object, and then the macro does everything it needs to.
Sometimes the IE window opens minimized though, and then the Sendkeys commands start manipulating the Excel sheet and messes it all up.
Is there a way for the macro to check if the IE window is on top, and make it if it isn't, before executing the Sendkeys commands?
Thanks!
Bookmarks