macros/vba project modules and creating add-ins on the toolbar using powerpoint 2010 by linda...
TRANSCRIPT
Macros/VBA Project Modules and
Creating Add-Ins on the Toolbar
Using PowerPoint 2010By Linda Carrillo, SPSSOD Technical Liaison
09/26/12
Changing Macro Security
• First open a new PPT(X) and change the Macro security: File>Options>Trust Center>Trust Center Settings>Check Trust Access>OK>OK
Save the VBA code
• Put the VBA code (with auto open) in a text file and save it. This will take out any spaces and you can copy and paste with ease.
Getting to Macros VBA Project Modules
• Select Alt+F11>Insert Tab>Module
Insert the VBA Code and Debug it.
• Paste VBA Code> Debug> Compile VBA Project>
Yes – to Macro Free Presentation
• File>Save PPT(X)• You might get a Save File as a Macro-free
presentation window. Just answer Yes.
• File>Save PPAM
Show Hidden Files
• If you don’t already have hidden files turned off do so: My Computer> Tools> Folder Options> View> check show hidden files, folders, and drives> OK
• Remember to switch it back when you are done.
Move the PPAM
• Move PPAM to trusted location: C drive> users> username> AppData> Roaming> Microsoft> AddIns
• File> Options> AddIns> under Manage select PowerPoint Add-in> GO
• Select Add New and see that the PPAM is checked> Close.
New Add-In Tab
• Select the new Add-Ins Tab in PPT(X) and select the new button you just created.
Output File Name
• Give the Output file a name>OK• (Example: ElijaNotes092612)
• If you get a message that says your Macro Security needs to change, most likely your code has an error and you’ll need to start over.
• If you get a message that says it Couldn’t create the file, most likely you needed to save the ppt(x) and try again.
Save the TXT
• It generates a txt file, save it, and print it.• Or you can copy and paste the content to a word
document to format differently.
Enable Macros Windows
• You might get a enable window when trying to work with old PPT(X)’s. Answer Yes. You will only have to do it once with each old PPT(X).
DO NOT DELETE the PPT(X)
• What ever you do, do NOT delete the PPT(X) with the VBA project module attached. Put it someplace in a folder titled DO NOT DELETE. If you delete this PPT(X) the Add-in will not work for future presentations.