Vb6- Move focus to PowerPoint
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
Re: Vb6- Move focus to PowerPoint
don't know all your code, but are you using:
Quote:
PPApp.Visible = True
anywhere?
Re: Vb6- Move focus to PowerPoint
How about posting all of the code that automates PPT.
Will this work with your current code approach?
https://support.microsoft.com/en-au/...omation-server
If you know the caption (text at top of PPT window) you might be able to use this approach:
http://visualbasic.happycodings.com/...vba/code5.html
Re: Vb6- Move focus to PowerPoint
Have no experience with Automating PowerPoint but xlApp.Caption works for me in Excel so;
Try AppActivate PPApp.Caption
Re: Vb6- Move focus to PowerPoint