PDA

View Full Version : Run Macro in non-presentation mode



RaSHA
07-26-2016, 07:42 PM
Hello all,
I am a VBA PPT newbee and try to create a command box which opens the find function when clicked.
I wrote the code and everything works fine in the slide show/ presentation mode but unfortunately not in the normal/ non-presentation mode. Any idea how to solve this?

Thanks!

John Wilson
07-27-2016, 12:58 AM
Command buttons etc ONLY work in show mode. If you want to click something (other than VIEW > Macro > Run) you will need to create a ribbon button in XML. There's a fairly simple example here.
http://www.pptalchemy.co.uk/custom_UI.html

RaSHA
07-27-2016, 06:47 PM
Thanks for your reply - looks fairly easy to use. But I won't be able to asign the add-in ribbon to a shape or text which would run once it is clicked, right?

John Wilson
07-27-2016, 11:34 PM
No but you could make the code in the ribbon only affect the selected shape.