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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PPT: how do I tell if a "save" or "save as" is in order.

Status
Not open for further replies.

jblewis

MIS
Jun 25, 2003
110
US
I'm trying to use the application event "PresentationBeforeSave" to handle launching a dialog for collecting custom document properties.

In Excel, _workbookbeforesave has a SaveAsUI boolean value that can be used to determine the application is going to give the user the SaveAs dialog or if it is just going to do the save (as soon as the workbookberforesave thread completes).

The implementation of "PresentationBeforeSave" for powerpoint doesn't have that so I am stuck trying to figure how to determine if the user will get a save as or not.

I implemented this in Word a little differently using modules called "FileSave" and "FileSaveAs" but the doesn't work in Excel or Powerpoint.

I only want to display my dialog when a Save As happens. Actually, I want it to happen right after the Save As happens, but that is for another thread.

Thanks!
JB
 
Don't know if it helps or not but could you use Application.ActivePresentation.Path as it will return an empty string if the document hasn't been saved yet? Perhaps you could check whether or not your custom properties exist and add/populate them if they don't.

HtH,
Rob

Rob

-Focus on the solution to the problem, not the obstacles in the way.-
 
I ended up using exactly that to work around it yesterday. I also stored the filename in a variable.. That way if the filename has changed, then they most likely did a Save As on an existing document.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top