Use Optionbuttons in Powerpoint

  • Thread starter Thread starter Mike Fiedler
  • Start date Start date
M

Mike Fiedler

I am working on a Powerpoint to present information,
interleaved with pages that require the viewer to respond
to questions. I have (typically) two 'groups' of
Optionbuttons per slide, supporting responses to T/F or
multiple choice. I had expected to use code incrementing
a counter if the appropriate itemmin each group had been
selected. What must code look like, to do that? I get
errors saying, "OBJECT REQUIRED"... as if VB doesn't
recognize OptionButton... What is correct syntax? Can
buttons be renamed via properties box in design mode?
 
Mike,

I don't think PPT has an easy way to work with a collection of option
buttons. I believe you need to reference the option button's individually
using their value property.

An example:
If Slide1.OptionButton1.Value Then
MsgBox "You picked option 1"
ElseIf Slide1.OptionButton2.Value Then
MsgBox "You picked option 2"
End If
 
Back
Top