Microsoft PowerPoint 2003 is a ubiquitous presentation program being widely used by business people, educators, and trainers. PowerPoint is among the most prevalent forms of persuasion technology available today. PowerPoint is included within the Microsoft Office Professional Edition.

Microsoft - Windows Marketplace

Visual Basic for Applications (VBA) is a programming language. With the addition of the VBA Editor, it is possible to use PowerPoint for far more than just basic presentations. PowerPoint VBA can automate complex tasks and perform complicated series of actions. The intent of this page is to show some useful PowerPoint VBA  examples that I have picked up in the process of creating my own applications. Click on the bulleted items below to view PowerPoint Visual Basic codes and tricks.

How to hide notes in a PowerPoint Presentation before distribution

To completely hide the notes, you will need to remove them from the
presentation. The macro simply automates this process. Follow these simple steps below:

  1. Copy the presentation.
  2. Close all other presentations.
  3. Type Alt+F11 (hold the ALT key while pressing the F11 key once) -- this
    will open the Visual Basic Editor (VBE) window.
  4. Type ALT (release), I (release), M (release) -- this opens a new blank
    code module.
  5. Cut and paste the code below within the module:
Sub DeleteNotes()
 Dim oSl As Slide
 Dim oSh as Shape
 For Each oSl In ActivePresentation.Slides
 For Each oSh in oSl.NotesPage.Shapes
 If oSh.PlaceHolderFormat.Type = _
 ppPlaceholderBody Then
 End if
 Next oSh
 Next oSl
End Sub
  1. Close the VBE window.
  2. Type ALT + F8 (hold the ALT while pressing the F8 key once) -- this opens
    the Run Macro dialog box.
  3. Select 'DeleteNotes' from the list.
  4. Click Run.
  5. Click OK when the macro is done removing all your notes text.
  6. Save this copy of the presentation that does not contain notes.

Back to Top^