Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-06-2017, 11:29 PM
saad saad is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Oct 2017
Posts: 2
saad is on a distinguished road
Default 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
Attached Images
File Type: png pdfmaker.PNG (10.7 KB, 2 views)
Reply With Quote
  #2  
Old 10-07-2017, 12:45 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 16,294
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Why are you bothering with PDFMaker when Word can produce PDFs on its own?
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 10-07-2017, 02:59 AM
saad saad is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Oct 2017
Posts: 2
saad is on a distinguished road
Default

The issue is fixed. it was compatibility problem.

https://support.microsoft.com/en-us/...bat-pdfmaker-o

thank you.
Reply With Quote
Reply
Please reply to this thread with any new information or opinions.

Thread Tools
Display Modes


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 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


All times are GMT -7. The time now is 06:17 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft