PPT2000: Sample Code to Delete Speakers Notes From Presentation (234206)



The information in this article applies to:

  • Microsoft PowerPoint 2000

This article was previously published under Q234206

SUMMARY

This article provides a sample Microsoft Visual Basic for Applications macro (Sub procedure) that can be used to delete speakers notes from a presentation.

MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Sample Visual Basic Procedure

Sub DelNotes()
   On Error Resume Next

   Dim sld as Slide

   For Each sld in ActivePresentation.Slides

      sld.NotesPage.Shapes.Placeholders(2).Delete

   Next sld
End Sub
				

Modification Type:MajorLast Reviewed:6/17/2005
Keywords:kbcode kbhowto kbinfo KB234206