I have a vb form that works like Powerpoint slide sorter mode. Is it possible to check which presentation the slide I click on belongs to? I would like to see if that presentation is open. If not, create it. If so, just go to the clicked slide. Thanks.<br>
DeeDee,<br><br>We'll need a little more information please. Could you tell us a bit more about your vb form and exactly what you'd like to find out? <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href=
The form has a control array of picture boxes that contain the powerpoint slide images. I want to click on the picturebox, check to see which presentation the slide belongs to. If the presentation it belongs to is not open, open it. If it is open, show the clicked slide in slide show mode. This is to work on a dual monitor system. It works right now except every time you click a picture, a new instance of powerpoint is opened and stays open until you "end show". This is taking up too much memory, and becomes VERY slow after you open about 5 slides. Here's the code I have right now:<br><FONT FACE=monospace><br>Private Sub PicBox_Click(Index As Integer)<br> Dim ppApp<br> Set ppApp = CreateObject("Powerpoint.Application"<br> ' Make it visible.<br> ppApp.Visible = True<br> ' Add a new presentation.<br> Dim ppPres As PowerPoint.Presentation<br> Set ppPres = ppApp.Presentations.Open _ (MDIForm1.CommonDialog1.FileName)<br> ppApp.ActiveWindow.View.GotoSlide (Index)<br> ppApp.WindowState = ppWindowMinimized<br> <br> ppPres.SlideShowSettings.Run<br> ppPres.SlideShowWindow.View.GotoSlide (Index)<br>End Sub </font>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.