Open a .pps from VBA, then exit slideshowview without closing the file

M

Martin Stender

Hi all,

I'm having a problem with the above.

To be precise, I need to - from VBA - open a .pps file and take it to
edit-mode.

It's a part of something larger, but it's generally like this:

(this could be in a module, triggered by a commandbutton)

Dim thepres As Presentation

file = "C:\test.pps"
Set thepres = Presentations.Open(file, msoFalse, msoFalse, msoTrue)
With thepres
.SlideShowWindow.View.Exit
End With
End Sub

But because it's a .pps file, the file closes after the 'View.Exit'
part - and I need it to remain open in edit mode.

Any suggestions?

Best regards
Martin
 
M

Martin Stender

Thank you both!

Steve, good idea, but I must admit I went with Shyams suggestion this
time.

Now, I must start to give more back to this great group myself...

Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top