View Single Post

  #4 (permalink)  
Old 10-06-2006
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

GetObject generate an exception error 429 when the object is still not existand, see this page: GetObject Function (Visual Basic)

So if you want to check if it exists already for eventually re-use then you have to place it into an exception block. Something like this:

Code:
Try
    GetObject ...
Catch
    CreateObject...
End
I dont know VB, so dont rely on the syntax

Last edited by Wilfried; 10-06-2006 at 01:59 PM.
Reply With Quote