Option Explicit
Sub Notes2Text()
Dim intSlide As Integer
Dim strFileName As String
Dim strTemp As String
Dim strNotes As String
strFileName = "c:\Notes.txt"
strTemp = MsgBox("Include labels in the text file?", _
vbQuestion + vbYesNoCancel, "Label Treatment")
If strTemp = vbCancel Then Exit Sub
Open strFileName For Output As #1
With ActivePresentation
If strTemp = vbYes Then
Print #1, "strFileName " & .Name
Print #1, "-----"
Print #1, ""
End If
For intSlide = 1 To .Slides.Count
If strTemp = vbYes Then Print #1, "Slide: " & intSlide
strNotes = ActivePresentation.Slides(intSlide).NotesPage. _
Shapes.Placeholders(2).TextFrame.TextRange.Text
Print #1, strNotes
If strTemp = vbYes Then Print #1, "========"
Next intSlide
End With
Close #1
End Sub
|