01-09-2019 11:36 AM
I am writing a vi to run MS Powerpoint, load multiple presentations and then play whichever one is selected. Based on the ActiveX controls in pptpresent.vi.
I can't find a function to change the ActivePresentation property, so I either keep opening and closing the MS application, or I have multiple copies of the application open at once for each presentation.
Any ideas?
Many thanks
Solved! Go to Solution.
01-09-2019 11:49 AM
@grahamwebb wrote:
I am writing a vi to run MS Powerpoint, load multiple presentations and then play whichever one is selected. Based on the ActiveX controls in pptpresent.vi.
I can't find a function to change the ActivePresentation property, so I either keep opening and closing the MS application, or I have multiple copies of the application open at once for each presentation.
Any ideas?
Many thanks
The MS web-site indicates that property is read only.
Ben
01-09-2019 12:14 PM
The "_Presentation" object has a "Windows" property, which is a Collection you can index to get a specific DocumentWindow object, which has an "Activate" method. Maybe try that?
01-09-2019 01:55 PM
That works perfectly! Thank you Kyle.