TheSwamp

Code Red => VB(A) => Topic started by: ronjonp on October 26, 2004, 09:44:50 AM

Title: VBA Error Trapping
Post by: ronjonp on October 26, 2004, 09:44:50 AM
I'm trying to setup a vba routine to set variables. How do I go about error trapping if the variable can't be set to a value or it does't exist?


Public Sub setvariables()

    ThisDrawing.SetVariable "apbox", 1
    ThisDrawing.SetVariable "attdia", 1
    ThisDrawing.SetVariable "attmode", 1
    ThisDrawing.SetVariable "auditctl", 0

End Sub

Thanks,

Ron
Title: VBA Error Trapping
Post by: Keith™ on October 26, 2004, 09:55:57 AM
On Error GoTo 'label'