[COLOR="Blue"]Private Sub[/COLOR] CommandButton1_Click[COLOR="blue"]()[/COLOR]
[COLOR="blue"]Call[/COLOR] Imprime
[COLOR="blue"]End[/COLOR] Sub
[COLOR="blue"]Sub[/COLOR] Imprime()
[COLOR="blue"]Dim[/COLOR] NumDiapo [COLOR="blue"]As Integer[/COLOR]
NumDiapo = ActiveWindow.View.Slide.SlideIndex [COLOR="SeaGreen"]'Numéro de la diapo en cours[/COLOR]
[COLOR="blue"]With [/COLOR]ActivePresentation
[COLOR="blue"]With [/COLOR].PrintOptions
.RangeType = ppPrintSlideRange [COLOR="seagreen"]'imprimer que certaines diapositives[/COLOR]
.FitToPage = msoTrue [COLOR="seagreen"]'Mise à l'échelle de la page[/COLOR]
.Ranges.Add NumDiapo, NumDiapo [COLOR="seagreen"]'imprimer que la diapositives en cours[/COLOR]
[COLOR="blue"]End With[/COLOR]
.PrintOut [COLOR="seagreen"]'Impression proprement dite[/COLOR]
[COLOR="blue"]End With[/COLOR]
[COLOR="Blue"]End Sub[/COLOR]
NumDiapo = ActivePresentation.SlideShowWindow.View.Slide.SlideIndex
[COLOR="blue"]Sub[/COLOR] Imprime()
[COLOR="blue"]Dim[/COLOR] NumDiapo [COLOR="blue"]As Integer[/COLOR]
[COLOR="SeaGreen"]'Numéro de la diapo en cours[/COLOR]
[COLOR="Blue"]If[/COLOR] Application.Version >= "12.0" [COLOR="Blue"]Then[/COLOR]
NumDiapo = ActiveWindow.View.Slide.SlideIndex
[COLOR="blue"]Else[/COLOR]
NumDiapo = ActivePresentation.SlideShowWindow.View.Slide.SlideIndex
[COLOR="blue"]End If[/COLOR]
[COLOR="blue"]With [/COLOR]ActivePresentation
[COLOR="blue"]With [/COLOR].PrintOptions
.RangeType = ppPrintSlideRange [COLOR="seagreen"]'imprimer que certaines diapositives[/COLOR]
.FitToPage = msoTrue [COLOR="seagreen"]'Mise à l'échelle de la page[/COLOR]
.Ranges.Add NumDiapo, NumDiapo [COLOR="seagreen"]'imprimer que la diapositives en cours[/COLOR]
[COLOR="blue"]End With[/COLOR]
.PrintOut [COLOR="seagreen"]'Impression proprement dite[/COLOR]
[COLOR="blue"]End With[/COLOR]
[COLOR="Blue"]End Sub[/COLOR]