Issue: Bring to front userform when Excel is invisible
Background info:
I am launching a vbs script from AutoCAD which, in turn, opens a particular excel workbook and initiate a macro. This workbook is opened invisibly (i.e. "xlApp.Visible = False", "Application.Visible = False"), so that the end user is can only view the userforms created by the macro. The problem that I'm running into is that the userforms are being displayed behind AutoCAD (or any other active window). I want to force these forms to appear on top of other windows.
Background info:
I am launching a vbs script from AutoCAD which, in turn, opens a particular excel workbook and initiate a macro. This workbook is opened invisibly (i.e. "xlApp.Visible = False", "Application.Visible = False"), so that the end user is can only view the userforms created by the macro. The problem that I'm running into is that the userforms are being displayed behind AutoCAD (or any other active window). I want to force these forms to appear on top of other windows.