save ppt with password vba

B

Boss

Hi,

I need to save the ppt file with passward. what changes shoud i make in the
code.

FileItem = "c:\test.ppt"

Dim pptfile As Object
Set pptfile = CreateObject("powerpoint.application")
pptfile.Visible = True
Set pShow = pptfile.Presentations.Open(FileItem)

With pShow
.SaveAs FileItem
.Close
End With

Please guide asap. thx!

Boss
 
J

John Wilson

Password to Open File?

With pShow
..Password="xyz"
..SaveAs FileItem
..Close
End With

Password to modify file

With pShow
..WritePassword="xyz"
..SaveAs FileItem
..Close
End With
 
B

Bill Dilworth

Steve,

Did you just send someone to the help files?!?

I know that you tested the advice and that it is sound, but isn't that one
of the 7 signs of the apocalypse?

Bill D.
 

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