J
JimS
I hope I can fully explain my predicament:
I have created code to turn on and off objects (shapes and pictures) in the
Master based on the user clicking on an object connected to my macro, which
also sends the user to a subsequent slide. I also have another clickable
object which will send the user back to a previous slide. I have both of
these clickable objects on each slide.
Certain objects in the Master will be hidden when invoking the macro to
advance to the next slide. Then these same objects are supposed to become
visible when invoking the macro again. However, they remain hidden - but in
Presentation Mode only! When I return to Normal view, those objects are
visible. In Presentation Mode, they become visible when moving on to the next
subsequent slide. But this only happens when the user first clicks on the
object that sends them back to a previous slide first. I am using PowerPoint
2007.
Thanks for any help on this. I've tried a lot of trial and error to
pinpoint the error, but I'm finally stumped!
Here's a bit of the macro to help understand what I'm doing:
Dim CurSld As Integer
'This has to be run in slide show view!
CurSld = SlideShowWindows(1).View.Slide.SlideID
Select Case CurSld.
..
..
..
Case 271 'Invoked while on slide 15
With ActivePresentation.Slides(1).CustomLayout.Shapes
.Item("MyObject").Visible = msoFalse
End With
Case 272 'Invoked while on slide 16
With ActivePresentation.Slides(1).CustomLayout.Shapes
.Item("MyObject").Visible = msoTrue
End With
..
..
..
Select Case CurSld
Case 271 'Invoked while on slide 15
With SlideShowWindows(1).View
.GotoSlide 16
End With
Case 272 'Invoked while on slide 16
With SlideShowWindows(1).View
.GotoSlide 17
End With
..
..
..
I have created code to turn on and off objects (shapes and pictures) in the
Master based on the user clicking on an object connected to my macro, which
also sends the user to a subsequent slide. I also have another clickable
object which will send the user back to a previous slide. I have both of
these clickable objects on each slide.
Certain objects in the Master will be hidden when invoking the macro to
advance to the next slide. Then these same objects are supposed to become
visible when invoking the macro again. However, they remain hidden - but in
Presentation Mode only! When I return to Normal view, those objects are
visible. In Presentation Mode, they become visible when moving on to the next
subsequent slide. But this only happens when the user first clicks on the
object that sends them back to a previous slide first. I am using PowerPoint
2007.
Thanks for any help on this. I've tried a lot of trial and error to
pinpoint the error, but I'm finally stumped!
Here's a bit of the macro to help understand what I'm doing:
Dim CurSld As Integer
'This has to be run in slide show view!
CurSld = SlideShowWindows(1).View.Slide.SlideID
Select Case CurSld.
..
..
..
Case 271 'Invoked while on slide 15
With ActivePresentation.Slides(1).CustomLayout.Shapes
.Item("MyObject").Visible = msoFalse
End With
Case 272 'Invoked while on slide 16
With ActivePresentation.Slides(1).CustomLayout.Shapes
.Item("MyObject").Visible = msoTrue
End With
..
..
..
Select Case CurSld
Case 271 'Invoked while on slide 15
With SlideShowWindows(1).View
.GotoSlide 16
End With
Case 272 'Invoked while on slide 16
With SlideShowWindows(1).View
.GotoSlide 17
End With
..
..
..