This is the forum to discuss the Wrox book Excel 2007 VBA Programmer's Reference by John Green, Stephen Bullen, Rob Bovey, Michael Alexander; ISBN: 9780470046432
You are currently viewing the BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have some 4 questions in excel which has radio buttons in it.
I am writing a vba code into it but its giving an error
i have this requirement
if option button 1 is clicked in Q1 i want it to range to cell which has question Q3
if option button 2 is clicked in Q1 i want it to range to cell which has question Q4
I am checking this code in Q2 option button click
Sub optionbutton2_click()
if optionbutton1.enabled=true then range("b3")
else if optionbutton2.enabled=true then range("b4")
End sub.
its giving me an error saying object is required
Can someone please help me on this.