![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: athens
Posts: 15
|
HI hope you guys can help
i need to run a dos command in my vba script Is it possible??? ie : run a file transfer from a as 400 machine wich is already done Ps if you guys want a real laugh you must have a look at my vba stuff i use indicators and stuff (from RPG) but hey it works |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Sub Run_dos() Shell "C:command.com", vbNormalFocus End Sub |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Location: athens
Posts: 15
|
Thanks a lot Ivan
Saved my but now all i have to do is figure out how to write (ie type in the words in dos) if you have any ideas great will really appreciate it |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Location: athens
Posts: 15
|
I think i got it
instead of calling the command .com just tell vb to run a .bat filr eg Sub Run _bat() Shell "C:test.bat", vbNormalFocus End Sub again thanks a lot Ivan |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|