
Run-time error '91' - HELP
Call GetArgs()
Function GetArgs()
'Put the info passed into an array
Dim Arg()
For i = 0 To wscript.Arguments.Count - 1 Step 1
Redim Preserve Arg(i)
Arg(i) = wscript.Arguments(i)
MsgBox Arg(i)
Next
End Function
Bryan Martin
I have the following code and I get
Run-time error '91':
Object variable or With block variable not set
when I try to run the program. Why is this and how do I fix it?
iCount = 0
For Each Argument In arrTemp
arrProg(iCount) = arrTemp(iCount)
iCount = iCount + 1
Next
Thanks in advance,
ap