Open a Password protected ppt file using VBA

G

Guest

Hello,

I have multiple Powerpoint files linked together that are password protected
(yes I know the passwords) but I want to be able to open these files via a
Macro and have the passwords (they are all the same) automatically entered.
I've done something similar with Excel, but I can't seem to get the code
right with Powerpoint.

I assume it will be something like:
Presentations.Open FileName:="C:\data\myfile.ppt", Password:="xyz"

Best regards,

BrianDon
 
B

Bill Dilworth

No.

You will need to 1) Unprotect them, 2) Enter the passwords manually at time
of presentations, or 3) Use problem prone 'SendKeys' commands via VBA (which
could error very badly and cause the passwords to be displayed).

The password object is not revealed in the PowerPoint object model.


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
yahoo2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top