Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello All, Thank you... up front, for what you do is greatly appreciated !
i want to execute a shell; however, the shell resides in multiple locations and i want to set the path in an IF statement then append it to the name of the bat file If LOBTitle = "doc" then path = "\\snt27\Pro\FTP\" elseif LOBTitle = "fac" then path = "\\snt28\PEM\FTP\" endif pathName = path & "run_ftp.bat" RetVal = Shell(pathName, 1) the problem is I get a procedure call error when using "pathName" variable instead of the exact path? please help thank you again |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-time Error '5' - Invalid procedure call or argument | Excel Discussion (Misc queries) | |||
Invalid procedure call or argument error | Excel Programming | |||
Run-time error '5': Invalid Procedure Call or Argument | Excel Discussion (Misc queries) | |||
Run Time Error 5 - Invalid Procedure Call or Argument Q | Excel Programming | |||
Run-time error '5':Invalid Procedure call or argument | Excel Programming |