+ Reply to Thread
Results 1 to 2 of 2

to run a batch file using VBA macro

  1. #1
    Registered User
    Join Date
    09-24-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question to run a batch file using VBA macro

    Hi,
    I have created a batch file to copy a csv file from a remote server to my desktop which works fine when I execute it.
    I want to invoke that batchfile using excel macro which is as follows:

    Please Login or Register  to view this content.
    It does not copy the required file to the destination. I have re checked my batchfile and it has no issues when run independently.
    One of the possibility could be, exel macro does not wait until the ftp is complete. How can I check at which step the problem is occuring? How can I go about it?

    Has anybody tackled the similar issue before? Any help is appreciated.

    Thanks in advance!

    Moderator Note:

    Pls use code tags around your code next time as per forum rules.
    Last edited by Fotis1991; 09-24-2013 at 04:18 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: to run a batch file using VBA macro

    I'd guess your variable definition is the problem. You probably want:
    Please Login or Register  to view this content.
    Or possibly just
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Batch file to run excel macro
    By shotta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2013, 12:48 PM
  2. Batch file & macro to copy the latest file from a folder
    By paidlukkha in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2013, 03:05 PM
  3. run an excel macro from a batch file
    By Mobho9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2012, 10:31 AM
  4. Run a macro only when file is opened via a batch file?
    By dylanemcgregor in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-28-2010, 12:17 PM
  5. Batch File From Macro
    By grahammal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2006, 11:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1