Run-time error '91' - HELP 
Author Message
 Run-time error '91' - HELP

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



Fri, 20 Feb 2004 07:46:44 GMT  
 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



Fri, 20 Feb 2004 10:04:30 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. RUN TIME ERROR '91':

2. run-time error '91'

3. Run Time Error '91'?

4. VB Run-time error '91'

5. >Run-Time Error Message '91'

6. Run-time error '91'

7. HELP : Error 91 : Run-Time Error 91 Object Variable or With

8. Runtime error '91'

9. Runtime error '91'

10. Error 91 running UpdateClass VBA macro from Sue Mosher's book

11. error '91'

12. run time error 91 - help

 

 
Powered by phpBB® Forum Software