Protect Presentation via VBA

  • Thread starter Thread starter Matt Fitzmaurice
  • Start date Start date
M

Matt Fitzmaurice

Hi all

In PowerPoint 2003 i can password protect a presentation by selecting Tools,
Options and the Security tab.
How can i do this via VBA code?

Thanks
Matt
 
Matt,
Take a look at the Password and WritePassword methods associated with the
Presentation object. While you can set password protection via the object
model, opening password protected presentations is not supported by the
PowerPoint object model.
 
Thanks Howard

I've gotten the hang of using Windows API's like you suggested.

I can put a password on a PowerPoint presentation via the WritePassword
method. Then i must close and open the presentation.
Unfortunately, the Open method brings up the Password dialog as a modal
dialog. As such, I can not use Send Keys or the Windows API functions to
enter the password.

I guess i could use API's to start a second thread... This is getting really
messy. I'm REALLY disappointed with the lack of functionality in
PowerPoint - I can do this kind of thing very easily in Word or Excel.

Cheers
Matt
 

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

Back
Top