Select Page

If you use the pen pointer to add annotations during a PowerPoint slide show, you might be disappointed with the default width which many people find too thin when projected.

This simple macro provides an easy way to repeatedly increment the ink line weight during a slide show.

Here’s How

Follow these steps to add the macro to your presentation and use it during a slide show.

  1. Open PowerPoint
  2. Press Alt+F11 to open the Visual Basic Editor (VBE)
  3. Right click on the VBAProject at the top left
  4. Click or hover over Insert
  5. Click Module
  6. Copy and past the macro from below to the code window on the right of the VBE
  7. Close the VBE
  8. Add a Shape to your slide and make sure it’s selected
  9. From the Insert tab in PowerPoint, click Action
  10. In the Mouse Click tab, select Run Macro and choose the IncreaseInkWeight macro
  11. Press F5 to start your slide show
  12. Press Ctrl+P to change the pointer to pen mode and draw an annotation on the slide
  13. Press Ctrl+A to change the pointer back to the default arrow
  14. Now click the shape you added in step 8 one or more times to increase the weight of your annotation

The Macro

' Macro by youpresent.co.uk
' Copyright (c) YOUpresent Ltd.
Public Sub IncreaseInkWeight()
  Dim oSld As Slide
  Dim oShp As Shape
  ' Need to temporarily exit the show as ink shapes aren't in the shapes collection!
  RefreshShow
  For Each oSld In ActivePresentation.Slides
    For Each oShp In oSld.Shapes
      With oShp
        If .Type = msoInkComment Or .Type = msoInk Then
          .Line.Weight = .Line.Weight + 0.5
        End If
      End With
    Next
  Next
End Sub

Private Sub RefreshShow()
  Dim mySlide As Integer
  mySlide = SlideShowWindows(1).View.Slide.SlideIndex
  SlideShowWindows(1).View.Exit
  ActivePresentation.SlideShowSettings.Run
  SlideShowWindows(1).View.GotoSlide (mySlide)
End Sub