Re: PowerPoint 2003 Automation



Might this help? Haven't tried it but it says it's a read or write
property.

Returns or sets a String that represents a password that must be supplied to
open the specified presentation. Read/write.

expression.Password

expression Required. An expression that returns one of the objects in the
Applies To list.

Example
This example opens Earnings.ppt, sets a password for it, and then closes the
presentation.

Sub SetPassword()
With Presentations.Open(FileName:="C:\My Documents\Earnings.ppt")
.Password = complexstrPWD 'global variable
.Save
.Close
End With
End Sub


"Tim" <msnews.microsoft.com> wrote in message
news:1319E25F-7D40-4934-918E-F165C9CF814A@xxxxxxxxxxxxxxxx
> Is there a way to determine if a PowerPoint Presentation or SlideShow is
> password protected (in terms of opening and editing where opening is my
> principle concern) via Automation of PowerPoint 2003 (I'm using C++ incase
> you are interested)?
>
> It appears from what I have read about previous versions of other office
> products (noteably word and excel) this is achieved by passing a nonsense
> password into the Open method and catching the return/exception. However,
> PowerPoint 2003 does not seem to offer this interface on its Open method
(the
> ability to supply a password)?
>
> My major concern is that as this is hidden automation the password prompt
> dialog will display and I will have to automate the entering of nonsense
into
> the password dialog but I wanted to check for ideas/advice before
embarking
> down this route.
>
> Thanks in advance for any help on this!
>
> Tim.
>
>
>
>
>

.



Relevant Pages

  • Re: PowerPoint 2003 Automation
    ... > principle concern) via Automation of PowerPoint 2003 (I'm using C++ incase ... > products this is achieved by passing a nonsense ... > password into the Open method and catching the return/exception. ...
    (microsoft.public.powerpoint)
  • PowerPoint 2003 Automation
    ... Is there a way to determine if a PowerPoint Presentation or SlideShow is ... password protected (in terms of opening and editing where opening is my ... PowerPoint 2003 does not seem to offer this interface on its Open method (the ... My major concern is that as this is hidden automation the password prompt ...
    (microsoft.public.powerpoint)
  • RE: Moving Data From Access to Powerpoint
    ... I worked one place where they did not want any reports as Access reports. ... the data that is automagically inserted to the slides if they want to. ... Office application using "Automation". ... that Powerpoint has one of the more difficult object models to use. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Automation fails in PowerPoint 2007
    ... It was designed using PowerPoint ... installed and this automation fails ... differences in the object hierarchy, methods, and VBA ... comptability is maintined in PPT 2007 for code created in PPT 2003 to ...
    (microsoft.public.powerpoint)
  • RE: Moving Data From Access to Powerpoint
    ... I am only sending two data elements to th powerpoint presentation). ... values in that table and creates a new instance of Powerpoint, Opens a copy ... I worked one place where they did not want any reports as Access reports. ... Office application using "Automation". ...
    (microsoft.public.access.modulesdaovba)