Lots of places on the internet publish vba code. If you don't know what to do with it ......
First should you use vba?
For your own use definitely, it can streamline tasks. However if you distribute your presentations there can be problems:
Where can I Find Code?
How Do I Use Code? (see below if you have 2007)
Copy the code from your source, it will normally start with Sub modulename() and end with End Sub. From Powerpoint open the vb editor by either pressing Alt + f11 or Tools >Macro>visual basic editor. Once there use the INSERT menu to insert a module. (see diagram 1)
Paste in the code it should now look a little like Diagram 2 (with different code of course).
To run code in edit view Tools > Macro >Macros > Run or much easier view > toolbars > visual basic and use the tools there (see diagram 3) The red arrow = run macro and the green go to vb editor.
To run code in slide show view the easiest way is to give an action button or a shape an action setting of Run > Macro. Do this with the Slide show > action settings menu. (Diagram 4)
I Have PowerPoint 2007 or Later
If you have PowerPoint 2007 you should enable the Developer tab to access the toolbars described above. To do this go to the big Office button > PowerPoint Options > Popular
In 2010/2013 go to Options > Customize ribbon and tick DEVELOPER
Run the macro from VIEW Tab > Macros
Remember to set your macro security at Medium (Disable with prompt) or saved code won't run!!
This website is sponsored by Technology Trish Ltd