?
Solved

I there a way to run one VB application from inside another VB application

Posted on 2004-04-27
3
Medium Priority
?
120 Views
Last Modified: 2010-05-02
Hi.... are the days of DOS batch files gone...? Is there a way of running a VB application from another VB application... the way batch files used to execute tasks one after the other...?

Assuming that I have a small VB application that copies or create folders on a drive... and another small VB application that does some thing after the first application is executed... is there a way to make the first application star, and when it accomplishes its task have the second application do its work....?
0
Comment
Question by:tariqanis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Accepted Solution

by:
Michael_D earned 375 total points
ID: 10927594
Use SHELL function to run any executable file.
Syntax:

Shell(pathname[,windowstyle])

Note: the Shell function runs programs asynchronously

Michael
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 10933942
To prevent the shell from 'running away' from you...try this PAQ...http:Q_20872942.html
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

800 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