Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute a DOS command...

Status
Not open for further replies.

Paco75

Programmer
Oct 11, 2001
239
US
Hi,

How can I use a DOS command from my excel macro?

thanks
 
which one? you can call built-in commands (such as type, dir, copy) using

shell "command.com /c dir *.*"
etc.

Rob
[flowerface]
 
copy <filename> \\ServerName\PrinterName

I wish to send a file to the printer...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top