Results 1 to 11 of 11

Thread: Problem with checkbox's

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    VBAX Regular
    Joined
    Apr 2023
    Posts
    6
    Location
    Quote Originally Posted by John Wilson View Post
    You might want to say what code you are using to hide / show the checkbox.
    Sub Lockclosed()
    Dim i As Integer
    Dim A As String
    A = InputBox("Sorry, only teachers can use this")
    If A = "magister" Then
    Slide7.Shapes("CheckBox1").Visible = True
    For i = 1 To 52
    ActivePresentation.Slides(i).Shapes("Oval77").Visible = False
    ActivePresentation.Slides(i).Shapes("Hint").Visible = False
    ActivePresentation.SlideMaster.Shapes("Lockopen").Visible = True
    ActivePresentation.SlideMaster.Shapes("Lockclosed").Visible = False
    Next i
    End If
    End Sub
    
    Sub Lockopen()
    Dim i As Integer
    Slide7.Shapes("CheckBox1").Visible = False
    For i = 1 To 52
    ActivePresentation.Slides(i).Shapes("Oval77").Visible = True
    ActivePresentation.Slides(i).Shapes("Hint").Visible = True
    ActivePresentation.SlideMaster.Shapes("Lockopen").Visible = False
    ActivePresentation.SlideMaster.Shapes("Lockclosed").Visible = True
    Next i
    End Sub
    Last edited by Aussiebear; 05-25-2023 at 01:46 PM. Reason: Added code tags to supplied code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •