1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Dim oPDFJob As Object
On Error GoTo L_ErrIsPDFCReatorInstalled
Set oPDFJob = CreateObject("PDFCreator.clsPDFCreator")
IsPDFCreatorInstalled = (Not oPDFJob Is Nothing)
On Error GoTo 0
L_ExIsPDFCReatorInstalled:
Set oPDFJob = Nothing
Exit Function
L_ErrIsPDFCReatorInstalled:
Resume L_ExIsPDFCReatorInstalled
End Function
Private Sub Détail_Click()
If IsPDFCreatorInstalled = False Then
MsgBox Err.Description, vbDefaultButton1, "Don goofed up"
Else
MsgBox Err.Description, vbDefaultButton1, "ya did good"
End If
End Sub |
Partager