I've got a macro that searches through all the shapes in a slide and hides the shapes that match certain names. My shapes collection includes a mixture of standard shapes and CommandButtons.
The Command Buttons are having their "Visible" property set to "False" in the properties window, and they aren't visible in the powerpoint edit screen, but they remain visible in the Slide Show view. This issue doesn't occur when I bypass the shape variable (sh.Visible) and refer to the command button directly (startB.Visible). See below:
For Each sh In ActivePresentation.Slides(1).Shapes
If sh.Name = "startB" Then
sh.Visible = False
End If
Next