+ Reply to Thread
Results 1 to 3 of 3

How do I call MS DOS commands from Macro.

  1. #1
    Registered User
    Join Date
    06-12-2006
    Posts
    2

    How do I call MS DOS commands from Macro.

    Hi,

    How can I call MS DOS commands from a Macro.
    A copy file command, or any other comamand?

    Thanks

  2. #2
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    Shell "cmd"

    Be very careful with this ...
    Google is your best friend!

  3. #3
    Chip Pearson
    Guest

    Re: How do I call MS DOS commands from Macro.

    Create a .bat file and Shell to it.

    Sub AAA()
    Shell "H:\test.bat"
    End Sub


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "MrDan8" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Hi,
    >
    > How can I call MS DOS commands from a Macro.
    > A copy file command, or any other comamand?
    >
    > Thanks
    >
    >
    > --
    > MrDan8
    > ------------------------------------------------------------------------
    > MrDan8's Profile:
    > http://www.excelforum.com/member.php...o&userid=35330
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=556166
    >




+ 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