W
wrekinmachn
The following macros does not run after I save the presentation as a pps,
what gives?
Sub PrintablePage()
Set printableSlide =
ActivePresentation.Slides.Add(Index:=printableSlideNum, Layout:=ppLayoutText)
printableSlide.Shapes(1).TextFrame.TextRange.Text = "Assessment for " &
userName
printableSlide.Shapes(2).TextFrame.TextRange.Text = "Press the print
button to print your assessment and present to qualified trainer along with
your signed training record." & Chr$(13) & "You answered " & numCorrect & "
questions correctly in " & numIncorrect + numCorrect & " attempts."
Set printButton =
ActivePresentation.Slides(printableSlideNum).Shapes.AddShape(msoShapeActionButtonCustom, 200, 0, 150, 50)
printButton.TextFrame.TextRange.Text = "Print"
printButton.ActionSettings(ppMouseClick).Action = ppActionRunMacro
printButton.ActionSettings(ppMouseClick).Run = "PrintResults"
ActivePresentation.SlideShowWindow.View.Next
ActivePresentation.Saved = True
End Sub
what gives?
Sub PrintablePage()
Set printableSlide =
ActivePresentation.Slides.Add(Index:=printableSlideNum, Layout:=ppLayoutText)
printableSlide.Shapes(1).TextFrame.TextRange.Text = "Assessment for " &
userName
printableSlide.Shapes(2).TextFrame.TextRange.Text = "Press the print
button to print your assessment and present to qualified trainer along with
your signed training record." & Chr$(13) & "You answered " & numCorrect & "
questions correctly in " & numIncorrect + numCorrect & " attempts."
Set printButton =
ActivePresentation.Slides(printableSlideNum).Shapes.AddShape(msoShapeActionButtonCustom, 200, 0, 150, 50)
printButton.TextFrame.TextRange.Text = "Print"
printButton.ActionSettings(ppMouseClick).Action = ppActionRunMacro
printButton.ActionSettings(ppMouseClick).Run = "PrintResults"
ActivePresentation.SlideShowWindow.View.Next
ActivePresentation.Saved = True
End Sub