VBA: close Adobe Reader

I have created a PDF file out of Excel and Adobe Reader is automatic opened.
I want to close Adobe Reader by VBA code.

Under references I have added the Adobe library.
I use this code but it doesn't work.
Can somebody help me please?
Jan Prins

 Sub closeAdobe()
    Dim wdobj As Acrobat.AcroApp
    On Error GoTo foutmelding
    Set wdobj = GetObject(, "Adobe Reader")
    
    With wdobj
        .Show
        .Exit
    End With
    
    Exit Sub
foutmelding:
    MsgBox "Cannot close Adobe"
End Sub
0
jan7807 (2)
4/14/2005 5:44:42 PM
excel 39879 articles. 2 followers. Follow

0 Replies
1511 Views

Similar Articles

[PageSpeed] 29

Reply:

Similar Artilces: