In VBA, I\'m doing a simple script that records a version of a spreadsheet being used.
Private Sub Workbook_Open() version = \"1.0\" Set objHTTP = C
Something like this:
Try ... Catch (Exception e) ... End Try
Might look like this in VBA:
' The "Try" part On Error Resume Next ... On Error GoTo 0 ' The "Catch" part If Err.Number <> 0 Then ... End If
However, this form may not be following best practices.