Reputation: 97
I am trying to record macro in 2013 but after i turn off powerpoint and start it again macro disappears.
I am trying to make some kind of powerpoint template and add it to every new presentation automatically.
Upvotes: 8
Views: 46628
Reputation: 308
Are you saving in a macro-enabled format? If not, macros/modules will disappear when you close the presentation.
To save in a macro-enabled format ...
There's no way (that I know of) to automatically add the macros/modules directly INTO new presentations, what you need to do is create a new PowerPoint template and save the macros in it (using the *.potm file format above).
I don't think there's a "personal presentation" in PowerPoint like there is in excel, so you'll have to make sure the template is open/loaded for the macros to be available to other presentations. You can set a template as the default one for PowerPoint (https://support.office.com/en-us/article/Load-and-apply-a-personal-template-71262c90-1447-4109-90f3-eb84f9d06c98), but this won't work if you work with multiple different templates. The other option is to have the user manually open the template every time they open PowerPoint.
Cheers
Upvotes: 0
Reputation: 1099
Not available any more since 2010 version. Write your own vba script instead.
Upvotes: 13
Reputation: 97
1) Open the file where the macro is saved.
2) Go to File -> Options -> Customize Toolbar
3) Under Choose commands from, select Macros
4) Add the Macro under a new group
It should appear on the Home ribbon every time you open PowerPoint
Upvotes: -5