PDA

View Full Version : Using VBA in a powerpoint quiz



pppt
05-16-2006, 02:04 PM
Hi everybody,
I use powerpoint to quiz my students. I'm really good at almost every practical aspect related to that use, but I' m newly introduced to the world of vba. I follow examples used in samples, but I need help concerning the printable score slide; I'm talking about a large number of multiple choice and short-answer questions. How can I get a printable of say 60 questions. Thanx.

bwells
05-29-2006, 08:14 AM
If i understand correctly is that you want to print out some questions to hard copy. If that is it I found this peice of code from the post called PowerPoint print to PDF. Its not exactly what you want but it looks like a printing function.


Public Sub HandoutsToPDF()
With ActivePresentation.PrintOptions
.RangeType = ppPrintAll
.NumberOfCopies = 1
.Collate = msoTrue
.OutputType = ppPrintOutputThreeSlideHandouts
.PrintHiddenSlides = msoTrue
.PrintColorType = ppPrintColor
.FitToPage = msoFalse
.FrameSlides = msoTrue
.HandoutOrder = ppPrintHandoutHorizontalFirst
.ActivePrinter = "Adobe PDF"
End With
ActivePresentation.PrintOut
End Sub

lucas
05-29-2006, 10:17 AM
Hi bwells,
I enclosed your code in vba tags. Just select your code when posting and hit the button that says VBA. Makes code easier to read.

bwells
05-30-2006, 05:37 AM
oh ok..sorry about that didn't know how to do it. I see it now. Thanks