Skip to main content
Participant
August 24, 2017
Question

MenuItemExecute("Scan") doesn't work with Acrobat 2017

  • August 24, 2017
  • 1 reply
  • 1343 views

I've used the following code in VBA for years since Acrobat 9.  I had a new user of the application that had Acrobat 2017 Standard installed and it doesn't run the scan command.

Set gpdfApp = CreateObject("AcroExch.App")

gpdfApp.MenuItemExecute("Scan")

I did some debugging and I could make the MenuItemExecute("Scan") work if I opened a document in Acrobat first but it doesn't seem to work right when Acrobat launches.

Is there any code I could add/change to make this work for me?

This topic has been closed for replies.

1 reply

lrosenth
Adobe Employee
Adobe Employee
August 24, 2017

That’s a very old menu name – you should be using the modern names in the modern versions of the app

Participant
August 24, 2017

If one of the newer names would work I'm all for it.  I've looked high and low for a document that lists all the menu names.  Can you direct me to the list?

lrosenth
Adobe Employee
Adobe Employee
August 24, 2017

You can get the list yourself using app.listMenuItems() in the JS console when running the app