I've put together a slide show for training for work, but I can't turn it in because of one last glitch--I can't get the Completion Certificate to print to file. I found code on the web (maybe this site) that works to print a hard copy of the certificate; I need the slide to print to file to the desktop. I believe the path for that is
Dim Path = "c:\Documents and Settings\All Users\Desktop\" and that the file name will be the slide number.
This is the code I tried to modify
[VBA]
Sub PrintCurrentSlide()
' Get current slide number in the running show.
Dim SldNo As Long
Dim Pres As Presentation
SldNo = SlideShowWindows(1).View.Slide.SlideIndex
Set Pres = SlideShowWindows(1).Presentation
With Pres.PrintOptions
' Set the shaperange type to slides
.RangeType = ppPrintSlideRange
.NumberOfCopies = 1
.Collate = msoTrue
.OutputType = ppPrintOutputSlides
.PrintHiddenSlides = msoTrue
.PrintColorType = ppPrintBlackAndWhite
.FitToPage = msoFalse
.FrameSlides = msoFalse
' Clear existing ranges
.Ranges.ClearAll
' Set the print range to current slide
.Ranges.Add SldNo, SldNo
End With
Pres.PrintOut
Set Pres = Nothing
End Sub
[/VBA]