Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Running a batch file from Excel VBA

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Running a batch file from Excel VBA

On Sun, 20 Jul 2003 08:02:49 GMT, "verizon"
wrote:

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])
---------------------------------


---------------------------------------------------------
Hank Scorpio
scorpionet who hates spam is at iprimus.com.au (You know what to do.)
* Please keep all replies in this Newsgroup. Thanks! *
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can excel run a batch file? Tom Excel Discussion (Misc queries) 2 June 1st 09 02:46 AM
Excel from Batch File Problem PcolaITGuy Excel Discussion (Misc queries) 2 January 10th 08 06:43 PM
Excel to Run a Batch File?!? carla New Users to Excel 3 January 20th 07 02:32 AM
Hide Excel session when running at the batch mode xiaoxshi Excel Discussion (Misc queries) 1 July 23rd 06 03:54 PM
Call a batch file from an Excel Macro Gary''s Student Excel Discussion (Misc queries) 0 March 2nd 06 03:26 PM


All times are GMT +1. The time now is 04:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"