Iban Arriola
Iban Arriola

Reputation: 2776

check if a file is saved with vba

I want to give the possibility to save a presentation when my macro executes.

I don't want it to be mandatory so I will insert a pop up asking if they want to save it.

But one problem that I see is that if it is already saved, I don't want anything to appear - how can I check if it is saved or not?

Upvotes: 0

Views: 417

Answers (1)

Chris Spicer
Chris Spicer

Reputation: 2194

The Presentation.Saved property tells you whether there have been any changes since the last save, and therefore whether you need to save it. Check this property before you show your pop-up.

Presntation.Saved on MSDN.

Upvotes: 1

Related Questions