Click on Input Arguments and pass a string argument with your dynamic file path
Inside you script, replace your hard coded file with this code:
Set objWorkbook = objExcel.Workbooks.Open(WScript.Arguments(0))
Click on Input Arguments and pass a string argument with your dynamic file path
Inside you script, replace your hard coded file with this code:
Set objWorkbook = objExcel.Workbooks.Open(WScript.Arguments(0))