R
robboll
Hello! I am having trouble with variables. When I run this
function:
Call MyFunction("C:\dm\documents\one.txt", "D:\DestinationDir
\onecopy.txt")
it works like a champ.
But when I replace the hard code with variables:
Call MyFunction("C:\dm\documents\" & fileName & ", " & "D:
\DestinationDir\" & CaseStamp & ")"
.. . . it bombs with the error "Argument Not Optional". I've tried
several variations of this without any success.
Any idea as to why it isn't accepting variables? I did check the
variabes with debugger and they match the hard code.
Thanks for any suggestions,
RBollinger
function:
Call MyFunction("C:\dm\documents\one.txt", "D:\DestinationDir
\onecopy.txt")
it works like a champ.
But when I replace the hard code with variables:
Call MyFunction("C:\dm\documents\" & fileName & ", " & "D:
\DestinationDir\" & CaseStamp & ")"
.. . . it bombs with the error "Argument Not Optional". I've tried
several variations of this without any success.
Any idea as to why it isn't accepting variables? I did check the
variabes with debugger and they match the hard code.
Thanks for any suggestions,
RBollinger