How to erase drawings with code?

D

DORI

Dear all,
I make some drawings during the show and I want to delete them by clicking
on a button on the screen rather than going to shortcut menu. I got this code
from Microsoft website:

Private Sub CommandButton1_Click()
SlideShowWindows(1).View.EraseDrawing
End Sub

but it does not do anything when I click on the button. I have PPT 2003. Any
idea?
Thanks in advance for your time.
DORI
 
D

DORI

I figured it out. I added another line of code to change the pointer to
eraser and now it works:
Private Sub CommandButton1_Click()
SlideShowWindows(1).View.PointerType = ppSlideShowPointerEraser
SlideShowWindows(1).View.EraseDrawing
End Sub
Regards,
DORI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top