Printing a Slide Using VBA

D

Dianne Aldridge

I'm trying to print a single slide in my PP presentation using VBA.
I've tried the following code, but it doesn't work:

Sub PrintCertificate()

ActivePresentation.Slides(19).Shapes("PrintButton").Visible = False
ActivePresentation.PrintOptions.OutputType = ppPrintOutputSlides
ActivePresentation.PrintOut From:=Slides(19), To:=Slides(19)

End Sub

(Bill, if you looking at this, this is my last area of questions for
this project, with the exception of packaging. I sure have appreciated
your help today!) :)
 
G

Guest

Dianne,

My class ended a few minutes early tonight, and I just saw your code. The
From and To should just have numbers not Slide(19), so you want something
like:

ActivePresentation.PrintOut From:=19, To:=19

--David

David Marcovitz
Microsoft PowerPoint MVP
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 

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