I am currently able to pass one argument from my Excel file to my batch file using the following:
filepath = \"C:\\Users\\agaron\\Desktop\\batchmaster\\batchfi
Windows batch files get different parameters delimited by spaces. So if your batch file batchfiletest.bat
is like:
echo off
echo %1
echo %2
echo %3
pause
then the following VBA should run properly:
Sub testBatch()
sMonth = Format(Now, "mmmm")
sDay = Format(Now, "dd")
sYear = Format(Now, "yyyy")
filepath = "C:\Users\axel\batchfiletest.bat " & sMonth & " " & sDay & " " & sYear
Shell filepath, vbNormalFocus
End Sub