Professional Documents
Culture Documents
My Powerpoint Macros: by Andrew Noske
My Powerpoint Macros: by Andrew Noske
by Andrew Noske
http://www.andrewnoske.com/
Contents
Introduction
Running Macros
Using these Macros in another PowerPoint document
Problems Running Macros
Using Macros across PowerPoint documents
Attaching/copying Macros in another PowerPoint Doc
Editing Macros
Signing Macros
Final Words
Introduction
Running Macros
To run Macros:
If not already hit [Alt+F8]
Click the macro you want and
hit Run
WARNING: Generally speaking
you cannot undo macros
(especially in MS Excel) and so
its a good idea to save a
backup before you run a
new/unfamiliar Macro.
Disabled!
Attaching/copying Macros in
another PowerPoint Doc
Instructions:
Make sure this PPT document is open
Open/create your own PPT document.
Hit [Alt-F8] in your PPT document, type
Marco name: whatever in and hit Create
The Visual Basic editor will appear.
In the Visual Basic editor, navigate to
PowerPoint_Macros_AN, select all
[Ctrl+A] the code and copy it [Ctrl+C].
Navigate back to your new Module1 select
all [Ctrl+A] and replace your whatever
subroutine with my code.
You can now close the Visual Basic Editor
(it will save automatically) and then close
this PPT document.
Navigate
Paste/edit
code here
Editing Macros
To edit Macros:
Click the macro and hit
Edit
Use the Visual Basic
(VB) window to edit
code.
TIP: Before you
play around read the
instructions at the
top of my code.
Once done, you can
save changes, run the
subroutine you are
editing or just close the
VB window (it will save
automatically)
Save
Run
Signing Macros
If you keep getting warning about Macros you can try using a
digital signature.
STEPS:
1. Go: Start >> Programs >> Microsoft Office >> Tools >> "Digital
Certificate for VBA Projects
This runs a program called SelfCert.exe
(which lives in: C:\Program Files\Microsoft Office\OFFICE11\Cert.exe )
3. Open the VB editor window and make sure the module/file you want to
sign is open/selected.
To get to here you can shortcut click [Alt+F11] from PowerPoint.
4. Click: Tools >> Digital Signatures >> Choose. Select the certificate you
just created. OK your way out and save your file.
The next time you open this particular file you shouldnt get any
warnings.
Final Words
Visual Basic is a babyish language, but hey Macros
are cool! Macros can save you lots of time doing by
automating repetitive tasks.
Macro implementation in PowerPoint is not so bad, but
actually I cant think of THAT many tasks you wound
want to automate in PowerPoint, so their use here is
limited.
Learning to use Macros in Excel and Word is much
more valuable if you wish to learn Macros start with
those!
Visit http://www.andrewnoske.com/ for more cool stuff.