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!

Open Protected Powerpoint Presentation using VBA

Status
Not open for further replies.

wmbb

Technical User
Jul 17, 2005
320
NL
Is it possible to open a powerpoint presentation, protected with the WritePassword method, using VBA without user input of the password (when the password is known).
Normally opening the presentation a password is asked to modify the presentation otherwise the presentation is opened as read-only.

I want to write a macro that opens a protected presentation in de modifying mode without user input of the password, because I don't want to supply the protection password to the users.
 
hi,

What code have you tried and where are you having problems? Please be specific.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
It depends on the office version you have. It's not possible until pp 2007. MS added this option in 2010 (ProtectedViewWindows.Open).

combo
 
Used version: Powerpoint 2007 or 2010

I'm providing users the option to protect their presentation before sending them to our customer using a macro.
in this macro I'm using the WritePassword method;

Code:
protectPresentation:
With ActivePresentation
.WritePassword = ProtectPassWord
.SaveAs ActivePresentation.Name
End With

So users can save the presentation as a protected presentation without knowing the password.

To make modifications to this presentation by the author they need to open the presentation with an unknown password so I want to write a macro that opens a selected (protected) presentation without user input of the password.

If I use the Presentations.Open methode I'm not able to provide the password in VBA.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top