A POTM file is a macro-enabled presentation template created by Microsoft PowerPoint, a program used for creating slide show presentations. It contains default images, slide templates, macros, and formatting. POTM files are used to create multiple .PPTM files with the same formatting and macro settings.
A file with the DOCM file extension is a Word Open XML Macro-Enabled Document file used in Microsoft Word. It was introduced in Microsoft Office 2007. DOCM files are just like DOCX files except that they can execute macros, which lets you automate repetitive tasks in Word.