سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top