smonczka
2005-08-07 19:23:58 UTC
I need some help with selecting a slide from VBA. I tried using
ActivePresentation.Slides(X).Select where X is the number of the
slide but still run into the error "Invalid request. Nothing
appropriate is currently selected."
The code I have is selecting the first slide in the presentation ande
inporting an excel object and then needs to select the next slide and
do the same. It does this three times, but errors out after the first
slide.
ActivePresentation.Slides(1).Select
With ActiveWindow.Selection.ShapeRange
.Fill.Transparency = 0#
.LockAspectRatio = msoFalse
End With
ActivePresentation.Slides(2).Select
With ActiveWindow.Selection.ShapeRange
.Fill.Transparency = 0#
.LockAspectRatio = msoFalse
Thanks a lot for your help.
Steve
ActivePresentation.Slides(X).Select where X is the number of the
slide but still run into the error "Invalid request. Nothing
appropriate is currently selected."
The code I have is selecting the first slide in the presentation ande
inporting an excel object and then needs to select the next slide and
do the same. It does this three times, but errors out after the first
slide.
ActivePresentation.Slides(1).Select
With ActiveWindow.Selection.ShapeRange
.Fill.Transparency = 0#
.LockAspectRatio = msoFalse
End With
ActivePresentation.Slides(2).Select
With ActiveWindow.Selection.ShapeRange
.Fill.Transparency = 0#
.LockAspectRatio = msoFalse
Thanks a lot for your help.
Steve