View Full Version : Help: opening a password protected presentation
Mohana Mural
12-12-2006, 12:17 AM
Hello,
For the word and excel application objects, we can provide "password" in the open method. But, powerpoint does not seem to provide in the open method of "Presentations" object.
Is there some way to send the password.
Thanks,
Mohan
Brandtrock
12-28-2006, 01:59 PM
From the VBA Help files:
Password Property
See AlsoApplies ToExample (http://www.vbaexpress.com/forum/#example)Specifics
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
Does something like this answer your question?
Regards,
Mohana Mural
01-01-2007, 02:27 AM
Hello Brandtrock,
Thanks for your reply.
My target is to open powerpoint application object invisibly and perform some work without any user interactions.
This works fine until I land into password protected powerpoint slides. In this case, the password dialog is displayed to the user.
I would like to either skip such ppts or provide a wrong password automatically so that ppt quits immediately.
The end result is that user need not do any interactions.
Happy New Year.
Thanks,
Mohan
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.