Running a batch file from Excel VBA

V

verizon

Hello

My macro creates text files that, subsequently, I would like to
automatically run the batch file which saves them to a remote location
(ftp).

Is it possible for VBA to run an outside program?

W
 
H

Hank Scorpio

Hello

My macro creates text files that, subsequently, I would like to
automatically run the batch file which saves them to a remote location
(ftp).

Is it possible for VBA to run an outside program?

Yes. See on-line help for the Shell function, a summary of which is
below:
--------------------------------
Shell Function

Runs an executable program and returns a Variant (Double) representing
the program's task ID if successful, otherwise it returns zero.

Syntax

Shell(pathname[,windowstyle])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top