Pass Argument from VBS to VBA
问题 I try to call a VBA subroutine from VBS with passing a string variable from VBS to VBA, but can't find the appropiate syntax: 'VBS: '------------------------ Option Explicit Set ArgObj = WScript.Arguments Dim strPath mystr = ArgObj(0) '? 'Creating shell object Set WshShell = CreateObject("WScript.Shell") 'Creating File System Object Set objFSO = CreateObject("Scripting.FileSystemObject") 'Getting the Folder Object Set ObjFolder = objFSO.GetFolder(WshShell.CurrentDirectory) 'Getting the list