+ Reply to Thread
Results 1 to 4 of 4

Run Excel Macro through Batch file

  1. #1
    LJi
    Guest

    Run Excel Macro through Batch file

    Hi List,

    Is that possible to run an Excel macro through a batch file? If yes,
    can I pass value to run a macro? For example, if i need to let the
    macro work on centern files, can i pass the file name when calling the
    macro from the batch file? Like

    C:\testmacro.xls FileOne.xls

    Thanks for any help.


  2. #2
    Bob Phillips
    Guest

    Re: Run Excel Macro through Batch file

    You can schedule an Excel macro to run at a pre-defined time if that is any
    good. You cannot run an Excel macro outside of Excel.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "LJi" <[email protected]> wrote in message
    news:[email protected]...
    > Hi List,
    >
    > Is that possible to run an Excel macro through a batch file? If yes,
    > can I pass value to run a macro? For example, if i need to let the
    > macro work on centern files, can i pass the file name when calling the
    > macro from the batch file? Like
    >
    > C:\testmacro.xls FileOne.xls
    >
    > Thanks for any help.
    >




  3. #3
    LJi
    Guest

    Re: Run Excel Macro through Batch file

    User already has a batch file which contains different command lines to
    run different programs. they want to add this macro into it.

    I may need to rewrite the macro using VB.

    Thanks for your reply.


  4. #4
    Bob Phillips
    Guest

    Re: Run Excel Macro through Batch file

    If it is a .bat file, would it be okay just to shell it?

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "LJi" <[email protected]> wrote in message
    news:[email protected]...
    > User already has a batch file which contains different command lines to
    > run different programs. they want to add this macro into it.
    >
    > I may need to rewrite the macro using VB.
    >
    > Thanks for your reply.
    >




+ 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