I am trying to make an advent calendar for my students. I have a main page with a makro. They can only access the slides on certain dates. But now I realize they can still use the space bar or keys to access all slides. My solution would be to hide all slides and make them visible one by one by their respective dates.
I got a vba off the internet but as I am super inexperienced it does not work. Please, anyone got a solution? Do I have to use a different modul? Or can I add it to the first modul? Is there an easier way? Also the kids are using iPads. Does that change anything?
This is what's not working:
Sub hideslide()
Dim x As Integer
Dim d1 As Date
Dim d2 As Date
x = 1
d1 = Date
d2 = "11/20/2012"
On Error GoTo errhandler
If d1 < d2 Then
ActivePresentation.Slides(x).SlideShowTransition.Hidden = msoTrue
Else
ActivePresentation.Slides(x).SlideShowTransition.Hidden = msoFalse
End If
errhandler:
End Sub