Is AdobePDFMaker installed in my client ?

B

Bo Hansson

How can I use VBA-code to investigate if AdobePDFMaker is installed in my
client ?


/BosseH
 
M

Mark Tangard

Hi Bo,

Different PDFxxxx.dot files will be present as add-ins depending
on how recently Adobe was installed, so you can test for anything
starting the PDF (assuming you don't have any add-ins of your own
named like that):

Dim ai As AddIn, FoundIt As Boolean
For Each ai In AddIns
If Left(ai.Name, 3) = "PDF" Then
FoundIt = True
Exit For
End If
Next ai
If FoundIt = True Then
MsgBox ai.Name & " is installed."
Else
MsgBox "PDFMaker/PDFWriter add-in not found."
End If
 
B

Bo Hansson

Thanks Mark, exactly what I wanted!

/BosseH

Mark Tangard said:
Hi Bo,

Different PDFxxxx.dot files will be present as add-ins depending
on how recently Adobe was installed, so you can test for anything
starting the PDF (assuming you don't have any add-ins of your own
named like that):

Dim ai As AddIn, FoundIt As Boolean
For Each ai In AddIns
If Left(ai.Name, 3) = "PDF" Then
FoundIt = True
Exit For
End If
Next ai
If FoundIt = True Then
MsgBox ai.Name & " is installed."
Else
MsgBox "PDFMaker/PDFWriter add-in not found."
End If

--
Mark Tangard <[email protected]>, Microsoft Word MVP
Please reply only to the newsgroup, not by private email.
Note well: MVPs do not work for Microsoft.
"Life is nothing if you're not obsessed." --John Waters
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top