문제

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.

도움이 되었습니까?

해결책 4

1) Open the file where the macro is saved.

2) Go to File -> Options -> Customize Toolbar

enter image description here

3) Under Choose commands from, select Macros

4) Add the Macro under a new group

enter image description here

It should appear on the Home ribbon every time you open PowerPoint

enter image description here

다른 팁

Not available any more since 2010 version. Write your own vba script instead.

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

  1. Click on the "Files" tab
  2. Select "Save As"
  3. Choose a location
  4. In the dialog box that opens, click on the "Save as type" drop-down menu
  5. Select "PowerPoint Macro-Enabled Presentation (.pptm)" or "PowerPoint Macro-Enabled Template (.potm)"

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top