Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Running pps

1 view
Skip to first unread message

D & J G

unread,
Mar 13, 2005, 2:24:40 PM3/13/05
to
How do I run a powerpoint show (.pps) from, say, a F1 key-press, then return
to the VB6 application?
DG


Veign

unread,
Mar 21, 2005, 12:54:14 PM3/21/05
to
Try using Automation using the Microsoft PowerPoint library (under
references)....


Like:
'Create the PowerPoint Object
Dim objPP As PowerPoint.Application
Set objPP = New PowerPoint.Application

'Make it visible
objPP.Visible = True

'Open a presentation
Dim objPres As PowerPoint.Presentation
Set objPres = objPP.Presentations.Open("c:\test.ppt")

'Prepare and run
With objPres.SlideShowSettings
.ShowType = ppShowTypeSpeaker
.LoopUntilStopped = False

.RangeType = ppShowAll
.AdvanceMode = ppSlideShowManualAdvance
.Run
End With

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


"D & J G" <donan...@optusnet.com.au> wrote in message
news:42349371$0$29445$afc3...@news.optusnet.com.au...

0 new messages