Skip to main content
Participant
Aug 24, 2017 11:38 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

8 replies

lrosenth
Adobe Employee
Adobe Employee
Aug 24, 2017 2:14 PM UTC

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

Translate
Participant
Aug 24, 2017 2:25 PM UTC

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?

Translate
lrosenth
Adobe Employee
Adobe Employee
Aug 24, 2017 3:24 PM UTC

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

Translate