Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / October 2006

Tip: Looking for answers? Try searching our database.

PresentationBeforeSave

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KarNek - 19 Oct 2006 12:31 GMT
I'm tring to take care of PresentationBeforeSave event but I have problems.
I use this code:

Dim fd = File Dialog
Set fd = Application.FileDialog(msoFileDialogSaveAs)
fd.InitialFIleName = "abc.ppt"
dlgAnswer = fd.Show
If dlgAnswer = -1 Then
  Pres.Saved = msoCTrue
End If  

My problems:
1. even I save presentation throw my fileDialog, the presenataion is not saved
2. even I set Pres.Saved, PPT shows save dialog again

Can you help me, please

Karol Nekanovic
Chirag - 19 Oct 2006 14:30 GMT
The PresentationBeforeSave event passes the "Cancel" argument by reference.
Set it to True to make PowerPoint not show the save dialog box after
PresentationBeforeSave event handler is executed.

- Chirag

 PowerShow - View multiple PowerPoint slide shows simultaneously
 http://officeone.mvps.org/powershow/powershow.html

> I'm tring to take care of PresentationBeforeSave event but I have
> problems.
[quoted text clipped - 16 lines]
>
> Karol Nekanovic
KarNek - 20 Oct 2006 08:17 GMT
Thank you for answer. It solves my second problem.
But I have still problem with my first issue. Simply, the dialog doesn't
save the presentation even I click SAVE.
Do you know what can be the problem?

Karol

> The PresentationBeforeSave event passes the "Cancel" argument by reference.
> Set it to True to make PowerPoint not show the save dialog box after
[quoted text clipped - 25 lines]
> >
> > Karol Nekanovic
Chirag - 20 Oct 2006 17:54 GMT
You mean the SaveAs dialog box that you initiated in the handler? That one
just shows the dialog box and returns you the file name. You need to save
the file yourself using the Save(), SaveAs() or SaveCopyAs() methods.

- Chirag

 PowerShow - View multiple PowerPoint slide shows simultaneously
 http://officeone.mvps.org/powershow/powershow.html

> Thank you for answer. It solves my second problem.
> But I have still problem with my first issue. Simply, the dialog doesn't
[quoted text clipped - 34 lines]
>> >
>> > Karol Nekanovic
Steve Rindsberg - 20 Oct 2006 18:05 GMT
> Thank you for answer. It solves my second problem.
> But I have still problem with my first issue. Simply, the dialog doesn't
> save the presentation even I click SAVE.
> Do you know what can be the problem?

As I understand it, FileDialog simply shows a file dialog and hands you back the
filename the user chose.

It's up to you to do something with it.

> Karol
>
[quoted text clipped - 27 lines]
> > >
> > > Karol Nekanovic

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
KarNek - 23 Oct 2006 08:19 GMT
When I want to save it with saveAs method there is error message.
I can't to find how to solve it. Can you send me short example how to save
the presentation in presentrationBeforeSave with using the fileDialog.

Thank you in advance.

KarNek

> > Thank you for answer. It solves my second problem.
> > But I have still problem with my first issue. Simply, the dialog doesn't
[quoted text clipped - 43 lines]
> PPTools:  www.pptools.com
> ================================================
Steve Rindsberg - 23 Oct 2006 16:58 GMT
> When I want to save it with saveAs method there is error message.
> I can't to find how to solve it. Can you send me short example how to save
> the presentation in presentrationBeforeSave with using the fileDialog.

I don't use the file dialog, so I don't have any examples handy.

And I'm afraid we won't be able to help much w/o better information from you ... if
there's an error message, tell us what it says.  

> Thank you in advance.
>
[quoted text clipped - 47 lines]
> > PPTools:  www.pptools.com
> > ================================================

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.