I have been creating and modifying a custom ribbon button in Powerpoint 2010 that uses a macro to save files to a location on the C: drive with a specific naming convention.
This had been working beautifully and I had tested it successfully many times. However I decided to create a new one using the steps at the below site:
I have created the pptm and modified it with Custom UI and, when I load the presentation, am able to successfully navigate to the custom tab and press the custom button and it does exactly what it is supposed to do. There is no problem with the XML code for the custom button and no problem with the macro.
However, when I save that presentation as a .ppta and add it as a powerpoint file, when I navigate to the custom tab/button and try and run it I get the following error:
Run-time error '5':
Invalid procedure call or argument
I have tried inserting this .ppta into Powerpoint 2010 on two other workstations and I get the same error when trying to run the macro. I have even tried creating it on another computer and the same thing happens; the .pptm with the macro and custom button works absolutely perfect, however when I save it as a .ppta I get the error.
Any help would be greatly appreciated.