As the WebDriver UDF - Help & Support thread has grown too big, I started a new one.
The prior thread can be found here.
@CodeWriter I think you might be misunderstanding which tab is being called "Active" in the UDF. The active tab isn't the one that is currently visible, but rather, the one that is being used currently by the WebDriver
Here's a function that will get the handle of the window