VBA command to close presentation w/out saving

  • Thread starter Thread starter JEG
  • Start date Start date
J

JEG

I have a presentation that hyperlinks to certain slides in another
presentation and when the user clicks a hyperlink and goes to the other
presentation, then if they hit the Esc key, there is a message saying that
the presentation has been changed and do they want to save changes. I
don't want that message to appear. Is there a way to program it so that
if a user hits Esc it will just close without saving and not give a
message?

Thanks!
Jackie
 
I have a presentation that hyperlinks to certain slides in another
presentation and when the user clicks a hyperlink and goes to the other
presentation, then if they hit the Esc key, there is a message saying that
the presentation has been changed and do they want to save changes. I
don't want that message to appear. Is there a way to program it so that
if a user hits Esc it will just close without saving and not give a
message?

It's no clear where VBA enters into this but

ActivePresentation.Saved = msoTrue

might help, depending on where/when you use it.
 
To close a presentation without saving using VBA - oPres.Close. You will not
encounter the save prompt. Alternately, a non vba solution would be to make
the target presentation read-only.
 

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

Back
Top