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!

What is the syntax to execute a batch file using VBA? 1

Status
Not open for further replies.

Apollo6

Technical User
Jan 27, 2000
418
US
I have a batch file that ftpz several files onto a server. I want to allow the user to launch this from an existing .XLA project(from a custom menu) inside Excel. Is this possible?

Thanks in advance for any suggestions.
 
Some variation of this should do the trick:
Code:
Private Sub CommandButton1_Click()
  Shell "C:\test.bat", 1
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top