GetMainWndHandle() As Long

Application object

GetMainWndHandle returns the window handle of the current application.

The Application object