Results 1 to 6 of 6

Thread: Open Powerpoint [password]

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    11

    Lightbulb 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

  2. #2
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,713

    Re: Open Powerpoint [password]

    What version of PowerPoint and what code are your trying to use?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    11

    Re: Open Powerpoint [password]

    Office Xp

    Code is:
    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.

  4. #4
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,713

    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    New Member
    Join Date
    Apr 2009
    Posts
    2

    Thumbs down Re: Open Powerpoint [password]

    Quote Originally Posted by mohit_5783 View Post
    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

  6. #6
    New Member
    Join Date
    Apr 2009
    Posts
    2

    Re: Open Powerpoint [password]

    can you help me to open this file

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width