+ Reply to Thread
Results 1 to 2 of 2

Run dos command with macro

  1. #1
    Registered User
    Join Date
    07-18-2008
    Location
    England
    Posts
    9

    Run dos command with macro

    Hi,

    I'm trying to use VBA to run a few dos commands but I kinda have no idea how to do this.

    I want to use the command "dir C:\test /b >test.csv"
    and then open that file in excel.

    This is quite a basic question but i think once I know how it works I can just expand on it.

    Sorry if I was vague on the explanation

    Thanks

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    Have a look at the help on the SHELL command.
    Cheers
    Andy
    www.andypope.info

+ 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