Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / May 2008

Tip: Looking for answers? Try searching our database.

How to erase drawings with code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DORI - 14 May 2008 06:40 GMT
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
John Wilson - 14 May 2008 08:54 GMT
As far as I can tell that code seems to be broken in 2003. It works for me in
2000

Have you tried pressing "E"?
Signature

-------------------------------------------
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk

> Dear all,
> I make some drawings during the show and I want to delete them by clicking
[quoted text clipped - 9 lines]
> Thanks in advance for your time.
> DORI
DORI - 14 May 2008 19:22 GMT
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

> As far as I can tell that code seems to be broken in 2003. It works for me in
> 2000
[quoted text clipped - 14 lines]
> > Thanks in advance for your time.
> > DORI

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.