By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,041 Members | 1,858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,041 IT Pros & Developers. It's quick & easy.

VB to open a ppt with password

P: 4
hi all,
i just want to open a powerpoint file which has password, in stead of typing the password into the input box manually, i want to put the password string in vb code and let the vb do the job. any idea? thanks in advance. it's very urgent, please!
May 2 '07 #1
Share this Question
Share on Google+
4 Replies


Dököll
Expert 100+
P: 2,364
hi all,
i just want to open a powerpoint file which has password, in stead of typing the password into the input box manually, i want to put the password string in vb code and let the vb do the job. any idea? thanks in advance. it's very urgent, please!
I am not sure what you need to do here, phish! But I pulled up some links for you through Google, give that a whirl. Also, if you post your code, we can see what is happening:

http://www.google.com/search?q=VB+to...e7&rlz=1I7SUNA

Good luck and welcome!

Dököll
May 2 '07 #2

P: 4
Thanks Dököll, but the google leads to a lots of password recovery tool pages, lol
here's my code
Expand|Select|Wrap|Line Numbers
  1. Dim ppApp As PowerPoint.Application
  2. Set ppApp = CreateObject("Powerpoint.Application")
  3.  
  4. Dim ppPres As PowerPoint.Presentation
  5. Set ppPres = ppApp.Presentations.Open(pptFileName)
  6. 'this pptFileName is password protected
  7.  
when the code runs here, it opens the pptFileName, which of course asks for the password, what I want to achieve is to let the following code to send the password to the ppt inputbox (for password)
May 2 '07 #3

Dököll
Expert 100+
P: 2,364
Thanks Dököll, but the google leads to a lots of password recovery tool pages, lol
here's my code
Expand|Select|Wrap|Line Numbers
  1. Dim ppApp As PowerPoint.Application
  2. Set ppApp = CreateObject("Powerpoint.Application")
  3.  
  4. Dim ppPres As PowerPoint.Presentation
  5. Set ppPres = ppApp.Presentations.Open(pptFileName)
  6. 'this pptFileName is password protected
  7.  
when the code runs here, it opens the pptFileName, which of course asks for the password, what I want to achieve is to let the following code to send the password to the ppt inputbox (for password)
Hey phish!

I really wanted to point you to this link: http://support.microsoft.com/kb/285496

If you needed more info, I also wanted you to see what else was included in my search. I will look further into this, ok...
May 3 '07 #4

P: 4
hi there,
thanks again for giving me the link, i looked it over but could figure out how to script so that the vbcode will send the password to powerpoint, any ideas?
May 4 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.