+ Reply to Thread
Results 1 to 4 of 4

Run a Btach file from excel

  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question Run a Btach file from excel

    Hi All.

    Just wondering how i would call a batch file from excel at a given time say 6pm every day?

    any help is really appreciated

    My Batch file is located in C:\My Documents\Batch1

    cheers
    Last edited by Macdave_19; 11-18-2008 at 09:57 AM.
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    You can use OnTime to run a Sub. Use Shell to execute the BAT file.

    I would just put the BAT file in a Windows Scheduled Task and skip Excel.

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Cheers Ken

    Thanks for the ideas ken obvious and plausable lol!! why do they always seem such tough problems until you see the answer?

    ha ha

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Macdave_19

    Just for completeness, this post deals with running .bat files from Excel (oddly enough, it was responded to by myself and Kenneth Hobson again) :

    http://www.excelforum.com/excel-prog...-txt-file.html

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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