473,499 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB to open a ppt with password

4 New Member
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
4 5027
Dököll
2,364 Recognized Expert Top Contributor
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
phish
4 New Member
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
2,364 Recognized Expert Top Contributor
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
phish
4 New Member
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

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

Similar topics

8
2399
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
4
1582
by: Edward | last post by:
My client has a database that was written in Access97. The database is password protected. If I try to open the database by double-clicking on it, it asks for the password. In Access97, I can...
6
8557
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
4
1869
by: dennist685 | last post by:
Can't open my .mdb I was experimenting with opening an access database in IIS. For experimenting, I have an .mdb called HasbaraSample. In this case I copied it to the C:\Inetpub\wwwroot\Access...
4
2744
by: connoisseur.infotech | last post by:
hello we are developing one tool where we need to open and make password protected zip files. we found some solutions but they don't support password protected things. does any one knows about...
3
3796
by: -xx- | last post by:
Hi, I am new to c# and just trying out c# with ms access. First problem i encountered is how do i open up ms access that has password. Here is my current codes which working fine if there is...
8
6241
by: Mai Le | last post by:
Hello, I used Microsoft Access to create a login form with Name Password Access Level Admin and User I would like to let Admin login and open MRB form and User login then open other form like...
4
6883
n8kindt
by: n8kindt | last post by:
i'm trying to create a secure scenario where no one will be able to know our encrypted database passcode. BUT if they login to a form in another database successfully, it will open the encrypted...
1
4551
by: ErikJL | last post by:
I have a simple webservice that performs a SELECT query against a database, and then an INSERT statement on the same database/table. The problem arises at the time when we create the second OleDB...
5
9078
by: tyakimov | last post by:
Hi guys I got a problem On my IIS server I changed the password for the Internet Guest Account 'IUSR_Machine' and suddenly the PHP part of the intranet stopped working. - '... failed to open...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
307
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.