Skip to main content
Participant
November 15, 2017
Question

CreateObject("AcroExch.PDDoc") not working any more

  • November 15, 2017
  • 3 replies
  • 24365 views

I have been using Excel macros for years, which would generate Word documents from data and then convert them to pdf with the Acrobat VBA-API. Since Adobe Reader DC has been installed last week in our company (Acrobat 11.0 and Acrobat 10.0 are also installed in the Adobe folder), this does not work any more -nothing changed from my side:

Sub add_bookmarks2pdf()

Dim myPdfDoc As Acrobat.CAcroPDDoc

,,,,

Set myPdfDoc = CreateObject("AcroExch.PDDoc")

..

the line Set myPdfDoc = CreateObject("AcroExch.PDDoc")   now throws an error.

Any option to fix this? Is it a referencing issue? I am using Acrobat ...

(abrobat11/Acrobat.tlb) as a reference, but later on this points to ...reader10/..../Acrord32,dll)

3 replies

Participant
January 27, 2025

Uninstall and reinstall Accrobat. It worked for me.

pf_cgnAuthor
Participant
November 15, 2017

It is an Acrobat method and as I have written, Acrobat is installed and this was posted in the Acrobat SDK-Forum. This should actually make it sufficiently clear. The only thing, which has changed vs. the previously running macro, is that our Company has installed Adobe Reader DC in addtion to Acrobat. This seems to cause reference pointing to missing filesacrord32.dll-files  after they were implemented with existing Acrobat.tlb

Karl Heinz  Kremer
Community Expert
Community Expert
November 15, 2017

Having the free Adobe Reader on the same system as a version of Acrobat that is different than the Reader version is not supported. Also, having more than one version of Acrobat on the same system is not supported either. The fact that it stopped to work after you installed Reader suggests that Reader is causing this problem. You need to uninstall Reader, and one of the Acrobat versions and then repair the remaining Acrobat installation via the "Repair" item in Acrobat's Help menu.

ReinhardF
Participating Frequently
November 23, 2017

Mmmh,

I work since years with Reader and Acrobat on the same system and most scripts are VBS. So far without problems.

I would reinstall Acrobat and new install (after Reader installation)

Legend
November 15, 2017

This method is not in Reader.