J
John
Hi there,
I always seem to have problems with the Is Nothing statement. Basically, I
want to delete a master from a stencil if it exists but it falls over at the
If Not line (Error: "object name not found").
Well I know it's not been found - that's the whole point of Is Nothing!
Can anyone point out what I'm doing wrong?
Thanks
John
'Remove Circle master from Doc stencil
If Not vDoc.Masters.Item("Circle") Is Nothing Then
vDoc.Masters.Item("Circle").Delete
End If
I always seem to have problems with the Is Nothing statement. Basically, I
want to delete a master from a stencil if it exists but it falls over at the
If Not line (Error: "object name not found").
Well I know it's not been found - that's the whole point of Is Nothing!
Can anyone point out what I'm doing wrong?
Thanks
John
'Remove Circle master from Doc stencil
If Not vDoc.Masters.Item("Circle") Is Nothing Then
vDoc.Masters.Item("Circle").Delete
End If