Open a Password protected ppt file using VBA

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
..
 
Back
Top