Solved

Execute exe from powerpoint

Posted on 2002-04-09
6
876 Views
Last Modified: 2012-05-04
I need to know if I can launch an separate exe application from powerpoint. If so, how?
0
Comment
Question by:kingkev
  • 4
6 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 6929188
Hi kingkey,

Check out "Shell" in the VBA help system. At it's simplest, all you need to do is:

For a simple batchfile

Sub executeBatchFile()
Dim retval As Variant
retval = Shell("c:\test.bat")
End Sub

You can add various switches to control how the batch file runs (e.g. minimised or not) if you wish, and you can test the return value (retval in the example above) to confirm things went according to plan

For an exex just replace it like

retval = Shell("c:\myapp.exe")

BTW why would you start a seperate app from powerpoint?

HTH:O)Bruintje
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6929191
or if you need a more descriptive version check this module

http://chrisrae.com/vba/routines/shellexecute.html

:O)Bruintje
0
 
LVL 4

Accepted Solution

by:
mousmasterbob earned 25 total points
ID: 6929516
You could insert it as a hyperlink if you want to run it from slide show view.Just put the path to the *.exe file

...Bob
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 44

Expert Comment

by:bruintje
ID: 6958262
Hi kingkev,

Any luck yet to try the suggestions in this thread?
Please provide some feedback to the experts willing to spend their time and try to solve your problem.

---------------------------
Thanks
:O)Bruintje
---------------------------
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6973636
Hi Kingkev,
 
Any update on this question?

in an effort to clean up old open questions

your options are:

1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the
participants why you wish to do this, and allow for Expert response.  This choice will include a refund
to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information
outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with
details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
 --> Post comments for expert of your intention to delete and why
 --> You cannot delete a question with comments, special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below, include the question

QID/link. http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

Please click this Help Desk link for Member Guidelines, Member Agreement and the Question/Answer process:
Click you Member Profile to view your question history and keep them all current with updates as the
collaboration effort continues. http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

------------>  EXPERTS:    Please leave any comments regarding this question here on closing recommendations
if this item remains inactive another seven (7) days.

---------------------------
Thanks
:O)Bruintje
---------------------------
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7007725
Force-accepted by
Netminder
CS Moderator

bruintje: points for you athttp://www.experts-exchange.com/jsp/qShow.jsp?ta=msoffice&qid=20300246
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you how to use shortcut menus in the Access run-time environment.
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now