The VB6 exe program is launched from an Excel add-in and is supposed to move the focus to an active and open PowerPoint presentation that should become the visible window.

Code:
With PPApp.ActiveWindow
    .ViewType = View
End With
PPApp.Activate

While in IDE mode the focus moves properly and PowerPoint is the visible window. But in the compiled form (the exe file) the PowerPoint icon in the taskbar blinks but PowerPoint does not appear on top of Excel

It seem that I have to find the handle of PowerPoint but don't know how to do it


Using Office 2016