A
anonymous
I am trying to copy all the shapes from a slide to the current slide during a
show.
That is while presenting a show I click an object with an "Action Setting"
of run macro. The macro selects all shapes on a different slide and copies
them to the clipboard. Then using paste special they are overlayed on the
current slide.
Sub DisplayImageOfSlide()
Dim iCurrSlide As Integer
Dim iSlide As Integer
Dim lScale As Long
Dim lLeft As Long
Dim lTop As Long
iCurrSlide = ActivePresentation.SlideShowWindow.View.Slide.SlideIndex
iSlide = 1
lScale = 50
lLeft = 300
lTop = 200
ActivePresentation.SlideShowWindow.View.GotoSlide iSlide
SlideShowWindows(Index:=1).View.Exit
ActiveWindow.ViewType = ppViewSlide
ActiveWindow.Selection.SlideRange.Shapes.SelectAll
ActiveWindow.Selection.Copy
ActiveWindow.View.GotoSlide iCurrSlide ' paste onto this slide
ActivePresentation.Slides(iCurrSlide).Shapes.PasteSpecial(ppPasteMetafilePicture).Select
With ActivePresentation.Slides(iCurrSlide).Shapes(2)
.ScaleWidth (lScale / 100), msoFalse
.ScaleHeight (lScale / 100), msoFalse
.IncrementLeft lLeft
.IncrementTop lTop
End With
ActivePresentation.SlideShowSettings.Run
ActivePresentation.SlideShowWindow.View.GotoSlide iCurrSlide
End Sub
show.
That is while presenting a show I click an object with an "Action Setting"
of run macro. The macro selects all shapes on a different slide and copies
them to the clipboard. Then using paste special they are overlayed on the
current slide.
Sub DisplayImageOfSlide()
Dim iCurrSlide As Integer
Dim iSlide As Integer
Dim lScale As Long
Dim lLeft As Long
Dim lTop As Long
iCurrSlide = ActivePresentation.SlideShowWindow.View.Slide.SlideIndex
iSlide = 1
lScale = 50
lLeft = 300
lTop = 200
ActivePresentation.SlideShowWindow.View.GotoSlide iSlide
SlideShowWindows(Index:=1).View.Exit
ActiveWindow.ViewType = ppViewSlide
ActiveWindow.Selection.SlideRange.Shapes.SelectAll
ActiveWindow.Selection.Copy
ActiveWindow.View.GotoSlide iCurrSlide ' paste onto this slide
ActivePresentation.Slides(iCurrSlide).Shapes.PasteSpecial(ppPasteMetafilePicture).Select
With ActivePresentation.Slides(iCurrSlide).Shapes(2)
.ScaleWidth (lScale / 100), msoFalse
.ScaleHeight (lScale / 100), msoFalse
.IncrementLeft lLeft
.IncrementTop lTop
End With
ActivePresentation.SlideShowSettings.Run
ActivePresentation.SlideShowWindow.View.GotoSlide iCurrSlide
End Sub