If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Open password protected ppt file using excel vba
Dim pptfile As Object
On Error Resume Next Application.DisplayAlerts = false Set pptfile = CreateObject("powerpoint.application") pptfile.Visible = True Set pshow = pptfile.Presentations.Open(FileItem, Password:="") With pshow .Password = "test" ' ppt password .SaveAs FileItem .Close End With pptfile.Quit Application.DisplayAlerts = True End If How can i pass password from the vba code. If the file does not have a password then it catches error. Any help is greatly appreciated. thx! |
Thread Tools | |
Display Modes | |
|
|