Microsoft Office Forums


Reply
Thread Tools Display Modes

Distinguishing between Save and SaveAs in PowerPoint

 
 
Andrei Smolin
Guest
Posts: n/a

 
      05-07-2004, 01:09 PM
Good day, everybody

I am implementing a COM Addin (in VB6) that should work with a whole bunch
of Office applications. The addin should do some things depending on the
location where the document is being saved (it is a document library in
SharePoint). To know if the location the user saves the document to is the
location I need, I intercept the BeforeSave event and if the user clicks
SaveAs or saves a new file, I show app.FileDialog(msoFileDialogSaveAs) in
the event procedure and check the result. This is possible because, in Word
and Excel, the BeforeSave event provides the SaveAsUI parameter that allows
you to know if FileSave dialog should be shown or not.

But neither PresentationBeforeSave nor PresentationSave doesn't provide the
SaveAsUI parameter. And now I ask: how can I distinguish between Save'ing
and SaveAs'ing in PowerPoint? Should I intercept clicking on menu items or
maybe there is a more direct way?

Andrei Smolin
Belarus


 
Reply With Quote
 
 
 
 
Shyam Pillai
Guest
Posts: n/a

 
      05-08-2004, 04:33 AM
Andrei,
> And now I ask: how can I distinguish between Save'ing
> and SaveAs'ing in PowerPoint?

Simply put - there is no way to detect this in PowerPoint.
You can set the OnAction propery for 'Save/Save as...' to run a custom
subroutine. You will also have to trap Ctrl+S keyboard shortcut.
--
Regards
Shyam Pillai

http://www.mvps.org/skp

"Andrei Smolin" <andrei_smolin-S-p-a-m-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Good day, everybody
>
> I am implementing a COM Addin (in VB6) that should work with a whole bunch
> of Office applications. The addin should do some things depending on the
> location where the document is being saved (it is a document library in
> SharePoint). To know if the location the user saves the document to is the
> location I need, I intercept the BeforeSave event and if the user clicks
> SaveAs or saves a new file, I show app.FileDialog(msoFileDialogSaveAs) in
> the event procedure and check the result. This is possible because, in

Word
> and Excel, the BeforeSave event provides the SaveAsUI parameter that

allows
> you to know if FileSave dialog should be shown or not.
>
> But neither PresentationBeforeSave nor PresentationSave doesn't provide

the
> SaveAsUI parameter. And now I ask: how can I distinguish between Save'ing
> and SaveAs'ing in PowerPoint? Should I intercept clicking on menu items or
> maybe there is a more direct way?
>
> Andrei Smolin
> Belarus
>
>



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent: XDocument.Save() or .SaveAs (JScript) Not supported ISUComSciGuy Infopath Newsgroup 5 12-07-2007 09:53 PM
Distinguishing Choice Section GGian Infopath Newsgroup 0 11-04-2004 03:34 PM
Powerpoint failing to save to network save.... Andy PowerPoint Newsgroup 5 05-08-2004 04:39 AM
Powerpoint - SaveAs HTML Asheesh Mangla PowerPoint Newsgroup 4 10-31-2003 03:30 AM
SaveAs Red Project Newsgroup 1 10-17-2003 01:40 PM



All times are GMT. The time now is 02:08 PM.