PC Review


Reply
Thread Tools Rate Thread

calling external routines

 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      11th Dec 2006
I've just converted and old Quickbasic program into excel but i'm stuck on 1
problem which I'm not even sure can be done. I want to call and run an MS DOS
batch file from within a VB macro.

Precisely the batch file is called "importdatafiles.bat' and all it does is
use FTP to tramsfer a few data files from a server to my hard drive.

Is it best (or possible) to call the .bat file and if so how or is there
another way within excel to import the files.

Thanks in advance,

Mike
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      11th Dec 2006
Apologies for wasting your time, a proper search of previous answers solved
my problem with the Shell command.

Mike

"Mike" wrote:

> I've just converted and old Quickbasic program into excel but i'm stuck on 1
> problem which I'm not even sure can be done. I want to call and run an MS DOS
> batch file from within a VB macro.
>
> Precisely the batch file is called "importdatafiles.bat' and all it does is
> use FTP to tramsfer a few data files from a server to my hard drive.
>
> Is it best (or possible) to call the .bat file and if so how or is there
> another way within excel to import the files.
>
> Thanks in advance,
>
> Mike

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      11th Dec 2006
Mike,
Check out Shell. You can run anything the system considers an executable.

NickHK

"Mike" <(E-Mail Removed)> wrote in message
news:72A38EE9-8022-4739-8484-(E-Mail Removed)...
> I've just converted and old Quickbasic program into excel but i'm stuck on

1
> problem which I'm not even sure can be done. I want to call and run an MS

DOS
> batch file from within a VB macro.
>
> Precisely the batch file is called "importdatafiles.bat' and all it does

is
> use FTP to tramsfer a few data files from a server to my hard drive.
>
> Is it best (or possible) to call the .bat file and if so how or is there
> another way within excel to import the files.
>
> Thanks in advance,
>
> Mike



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling routines from different sheets Peter Microsoft Excel Programming 1 28th Oct 2009 01:49 AM
Calling sub routines Andrew Microsoft Excel Programming 2 30th Jun 2005 05:30 PM
Help with calling external DLL.... Microsoft C# .NET 1 16th Apr 2004 10:23 AM
Calling LZO routines from VB.NET Paul Ferrill Microsoft VB .NET 3 10th Jan 2004 03:39 AM
Declaring in .Net an MSAccess Object and calling Sub routines in Access from .Net Gary O'Malley Microsoft C# .NET 0 4th Aug 2003 07:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:16 PM.