#1
|
|||
|
|||
Application.COMAddIns PDFMAKER return nothing
Hi,
I try to convert document word to pdf using PDFMaker. So, I installed Adobe acrobat XI Pro. When I execute below code, Application.COMAddIns.Description gives the descritpion of the add in but it didn't return the objet, nothing is returned Sub test() Dim pmkr As AdobePDFMakerForOffice.PDFMaker Dim stng As AdobePDFMakerForOffice.ISettings On Error GoTo ErrorHandler For Each a In Application.COMAddIns If InStr(UCase(a.Description), "PDFMAKER") > 0 Then Set pmkr = a.Object Exit For End If Next If pmkr Is Nothing Then MsgBox "Can not find PDFMaker add-in", vbOKOnly, "" Exit Sub End If pmkr.GetCurrentConversionSettings stng ErrorHandler: MsgBox "Erreur no " & Err.Number & " " & Err.Description End Sub Could you help please. Saad |
#2
|
||||
|
||||
Why are you bothering with PDFMaker when Word can produce PDFs on its own?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
The issue is fixed. it was compatibility problem.
https://support.microsoft.com/en-us/...bat-pdfmaker-o thank you. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Application Forms | Gladiator | Word | 2 | 09-16-2015 03:14 PM |
What application to use? | pfergy | Office | 1 | 03-12-2011 08:46 PM |
Application.FileSearch | cksm4 | Word VBA | 0 | 08-19-2010 02:18 PM |
Best application to use? | FrankW | Office | 2 | 06-13-2009 01:16 AM |
What is Application Automation and How can I use it in VBA | KramerJ | Excel | 0 | 03-30-2009 12:59 PM |