G
Guest
I have a text box on certain slides in my presentation (all are named
'VOTextBox') that I want to make visible = true or visible = false based on
user input. Initially I will start by making them all visible = false. I have
the following code in my module, with the expectation that PPT will return an
error if the active slide does not have a control by that name, but the error
trapping doesn't seem to work:
Sub VOTextOff()
Dim x As Long
On Error GoTo NoTextBox
For x = 1 To ActivePresentation.Slides.Count
ActivePresentation.Slides(x).Shapes("VOTextBox").Visible = msoFalse
NoTextBox:
Err.Clear
Next x
End Sub
Help is appreciated.
'VOTextBox') that I want to make visible = true or visible = false based on
user input. Initially I will start by making them all visible = false. I have
the following code in my module, with the expectation that PPT will return an
error if the active slide does not have a control by that name, but the error
trapping doesn't seem to work:
Sub VOTextOff()
Dim x As Long
On Error GoTo NoTextBox
For x = 1 To ActivePresentation.Slides.Count
ActivePresentation.Slides(x).Shapes("VOTextBox").Visible = msoFalse
NoTextBox:
Err.Clear
Next x
End Sub
Help is appreciated.