This VBA sample illustrates how to convert PowerPoint presentations to Word documents, in the meantime, it will try to keep the original format and layout and reduce the output file size. It can be only run on PowerPoint 2010.
Converting PowerPoint presentations to Word documents is a frequently asked question by end-users in many public forums. Although there are similar methods available from built-in feature or 3rd-party applications, but most of them have evident disadvantage, some of them make large file size, some of them break or lose the format or layout.
Step1. Press Alt+F11 to open the VBE in PowerPoint.
Step2. Select these two files (ufrmP2W.frm & mdlP2W.bas) and drag them to the Project Explorer (Press Ctrl+R if you cannot see it) or via File >> Import File... (Ctrl+M).

Step3. Go back to the presentation.
Step4. Press the Run button via Alt+F8.
Step5. Select "Main" in the names list, and then click the Run button. We will see a window with three buttons.

Here are some code snippets for your references. To get the complete script sample, please click the "Download" button at the beginning of the page.
' /* Read notes in the current slide. */
For Each spNotes In spNotesPage
If spNotes.HasTextFrame Then
If spNotes.PlaceholderFormat.Type = ppPlaceholderBody Then
strNotesText = spNotes.TextFrame.TextRange.Text
Exit For
End If
End If
Next
sldEach.Shapes.Range.Copy
.Paste
' /* Read notes in the current slide. */ For Each spNotes In spNotesPage If spNotes.HasTextFrame Then If spNotes.PlaceholderFormat.Type = ppPlaceholderBody Then strNotesText = spNotes.TextFrame.TextRange.Text Exit For End If End If Next sldEach.Shapes.Range.Copy .Paste
1. Please make sure that macros are enabled in PowerPoint.
For PowerPoint 2010: File >> Options >> Trust Center >> Trust Center Settings >> Macro Settings >> Enable all macros >> OK >> OK >> Restart PowerPoint
2. The notes in PowerPoint presentation will be converted to the comments in Word document.
3. PowerPoint template file cannot be converted using this VBA.
4. The output Word document will use the same file name of the PPT file and be saved at the same location of the PPT file. It will overwrite the existing Word document that was saved with the same name.
For example: The PPT file's location is: D:\MyPPT.pptx Then the output Word document's location will be: D:\MyPPT.docx
5. The file "ufrmP2W.frx" is a binary data file used to store binary information for the form (.frm) file with the same file name, please do not delete it.
Related forum threads: