How to get reference of active excel using VB.net invoke code activity
I know it’s not VB.Net, but woulrd the Get Active Window activity accomplish what you’re trying to do?