Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing specific powerpoint presentations

Status
Not open for further replies.

Scrooby

Technical User
Feb 4, 2004
5
NL
Hi,

We need to close some specific powerpoint presentations from another powerpoint presentation (leaving this presentation open and active). We tried some codes (see below), which worked really well on PPT97 & Win 2000, but failed to work on PPT2003 & WinXP :S!!
Can somebody help to make this code work on all computer environments?

The code we used:

Code:
  Dim aa As Presentation
  For Each aa In Application.Presentations
      With aa
        Select Case .Name
          Case "Presentation1", "Presentation2", "Presentation3"
                   .Close
        End Select
      End With
    Next aa

Thanks, Huib
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top