Open Powerpoint [password]
Dear Friends,
I want to open a powerpoint which is password protected with my visual basic program and password will be passed by our program.
I had tried so many ways and already open word document with password protection but here i need u people
Thnx for valuable suggestions
Re: Open Powerpoint [password]
What version of PowerPoint and what code are your trying to use?
Re: Open Powerpoint [password]
Office Xp
Code is:
Quote:
Dim PowerPoint As PowerPoint.Application
Dim oFile As PowerPoint.Presentation
Dim oShape As PowerPoint.Shape
Dim oSlide As PowerPoint.Slide
Dim lngSlideCounter As Long
'Set variables.
lngSlideCounter = 1
Set PowerPoint = New PowerPoint.Application
PowerPoint.Visible = msoTrue
PowerPoint.WindowState = ppWindowMinimized
PowerPoint.ShowWindowsInTaskbar = msoFalse
Set oFile = PowerPoint.Presentations.Open(strSourcePPTpath)
Now what to do for password this code will open the presentation.
Re: Open Powerpoint [password]
There are no commandline switches for passing a password in PP or .Open parameters but you may be able to with the PP Viewer utility. Once the presentation is open you can reset the password using the presentation.password property but the point is mute.
Re: Open Powerpoint [password]
Quote:
Originally Posted by
mohit_5783
Dear Friends,
I want to open a powerpoint which is password protected with my visual basic program and password will be passed by our program.
I had tried so many ways and already open word document with password protection but here i need u people
Thnx for valuable suggestions
plz can you help me
Re: Open Powerpoint [password]
can you help me to open this file