Clearing radio buttons
- From: "Francis Hookham" <fh.2.net@xxxxxxxxxxxx>
- Date: Wed, 2 Apr 2008 19:46:48 +0100
The clicked radio button in a UserForm does not clear so clicking the same
button again does not work, whereas clicking another radio button next does
work.
Is there an instruction I should incorporate to clear the previous clicking
of the button? If so what and where should it go?
Francis Hookham
--------------------------------------------------------------
Private Sub OptionButton6_Click()
'colour frame(s) orange
Userform1.Hide
ColourOrange
End Sub
Sub ColourOrange()
FindFrameRow
'set colour
ActiveWorkbook.Colors(21) = RGB(255, 245, 225)
FillColour = 21
OneShotColour
End Sub
Sub FindFrameRow()
If ActiveCell.Row = 1 Or ActiveCell.Row = 2 Then
RowNo = 3
Else
RowNo = ActiveCell.Row
While Cells(RowNo, 1) = ""
RowNo = RowNo - 1
Wend
End If
Cells(RowNo, 1).Select
End Sub
Sub OneShotColour()
'given 'RowNo', this performs the colour change of one shot
Range(Cells(RowNo, 2), Cells(RowNo + 15, 10)). _
Interior.ColorIndex = FillColour
Cells(RowNo, 7).Interior.ColorIndex = xlNone
Cells(RowNo, 9).Interior.ColorIndex = xlNone
End Sub
.
- Follow-Ups:
- RE: Clearing radio buttons
- From: Air_Cooled_Nut
- Re: Clearing radio buttons
- From: Gary Keramidas
- RE: Clearing radio buttons
- Prev by Date: Problem saving backup file with VBA
- Next by Date: RE: NEED Formula
- Previous by thread: Problem saving backup file with VBA
- Next by thread: Re: Clearing radio buttons
- Index(es):
Loading