macros/vba project modules and creating add-ins on the toolbar using powerpoint 2010 by linda...

17
Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

Upload: kelvin-prestwood

Post on 12-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

Macros/VBA Project Modules and

Creating Add-Ins on the Toolbar

Using PowerPoint 2010By Linda Carrillo, SPSSOD Technical Liaison

09/26/12

Page 2: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By 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

Page 3: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

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.

Page 4: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

Getting to Macros VBA Project Modules

• Select Alt+F11>Insert Tab>Module

Page 5: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

Insert the VBA Code and Debug it.

• Paste VBA Code> Debug> Compile VBA Project>

Page 6: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

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

Page 7: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

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.

Page 8: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

Move the PPAM

• Move PPAM to trusted location: C drive> users> username> AppData> Roaming> Microsoft> AddIns

Page 9: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

• File> Options> AddIns> under Manage select PowerPoint Add-in> GO

Page 10: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

• Select Add New and see that the PPAM is checked> Close.

Page 11: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

New Add-In Tab

• Select the new Add-Ins Tab in PPT(X) and select the new button you just created.

Page 12: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

Output File Name

• Give the Output file a name>OK• (Example: ElijaNotes092612)

Page 13: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

• 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.

Page 14: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

• 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.

Page 15: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

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.

Page 16: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

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).

Page 17: Macros/VBA Project Modules and Creating Add-Ins on the Toolbar Using PowerPoint 2010 By Linda Carrillo, SPSSOD Technical Liaison 09/26/12

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.