Solved

Launch an external exectable in Excel

Posted on 1998-12-17
2
664 Views
Last Modified: 2012-08-13
what is the VBA command to launch an external executable in Excel?
0
Comment
Question by:jdaues
2 Comments
 

Author Comment

by:jdaues
ID: 1615127
Edited text of question
0
 
LVL 1

Accepted Solution

by:
ajwnet earned 50 total points
ID: 1615128
Hi. Here's how to open the calculator for example, using the Shell function..
'------------------------------------------------------------
Sub Macro1()
' Macro1 Macro
' Macro recorded 17-12-98 by Andy Walters
Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1)    ' Run Calculator.
End Sub
'------------------------------------------------------------
'nb. Specifying 1 as the second argument opens the application 'in normal size and gives it the focus.

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

821 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