Re: PowerPoint 2003 Automation
- From: "Austin Myers" <austinm@xxxxxxx>
- Date: Thu, 8 Sep 2005 16:49:25 -0500
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.
>
>
>
>
>
.
- References:
- PowerPoint 2003 Automation
- From: Tim
- PowerPoint 2003 Automation
- Prev by Date: RE: PowerPoint 2003 Automation
- Next by Date: Re: Changing default print setting in PowerPoint
- Previous by thread: RE: PowerPoint 2003 Automation
- Next by thread: Re: PowerPoint 2003 Automation
- Index(es):
Relevant Pages
|