Save open PDF via VBA
Dears,
I have an little problem in controlling Acrobat DC with VBA (Acess 2013).
My Issue: I have an Automaticly opend .pdf Document and I need to save this at an defined location.
I Have activaed the necessary Libarys in Access
My Code:
Sub SavePDf()
Dim AcroApp As Acrobat.CAcroApp
Dim PdDoc As Acrobat.CAcroPDDoc
Dim avdoc As Acrobat.CAcroAVDoc
Set AcroApp = CreateObject("AcroExch.App")
Set avdoc = AcroApp.GetActiveDoc
Set PdDoc = avdoc.GetPDDoc
WasSaved = PdDoc.Save(PDSaveFull, "C:\Users\ND01132\Documents\Excel")
End Sub
At the Set PDDoc line I get the Runtime Error 91 "Object variable or Wih block not Set" but I dont have any Idea why.
Thanks for your Help !
Regards
