Caveman1964
Board Regular
- Joined
- Dec 14, 2017
- Messages
- 127
- Office Version
- 2016
- Platform
- Windows
I must be driving some of you crazy.
I put in multipage userform with radio buttons to put value in a cell.
I click a tab and a radio button and it puts the value in....but if I decide i needed the other tab page option, i click the tab and it doesnt replace value
But it will replace value if on same tab of the multi page userform.
here is my mess. Please help.
Private Sub UGA_Click()
Sheets("Do Not Alter").Unprotect "1"
Sheets("Data Collection").Unprotect "1"
Sheets("Complaint Entry").Unprotect "1"
Sheets("Complaint Entry").Select
Range("E11").Select
If GA23.Value = True Then
ActiveCell.Value = GA23.Caption
ElseIf GA10.Value = True Then
ActiveCell.Value = GA10.Caption
ElseIf GA06.Value = True Then
ActiveCell.Value = GA06.Caption
ElseIf GA04.Value = True Then
ActiveCell.Value = GA04.Caption
'another tab below
ElseIf TH30.Value = True Then
ActiveCell.Value = TH30.Caption
ElseIf TH10.Value = True Then
ActiveCell.Value = TH10.Caption
ElseIf TH13.Value = True Then
ActiveCell.Value = TH13.Caption
ElseIf TH02.Value = True Then
ActiveCell.Value = TH02.Caption
ElseIf TH06.Value = True Then
ActiveCell.Value = TH06.Caption
End If
End Sub
I put in multipage userform with radio buttons to put value in a cell.
I click a tab and a radio button and it puts the value in....but if I decide i needed the other tab page option, i click the tab and it doesnt replace value
But it will replace value if on same tab of the multi page userform.
here is my mess. Please help.
Private Sub UGA_Click()
Sheets("Do Not Alter").Unprotect "1"
Sheets("Data Collection").Unprotect "1"
Sheets("Complaint Entry").Unprotect "1"
Sheets("Complaint Entry").Select
Range("E11").Select
If GA23.Value = True Then
ActiveCell.Value = GA23.Caption
ElseIf GA10.Value = True Then
ActiveCell.Value = GA10.Caption
ElseIf GA06.Value = True Then
ActiveCell.Value = GA06.Caption
ElseIf GA04.Value = True Then
ActiveCell.Value = GA04.Caption
'another tab below
ElseIf TH30.Value = True Then
ActiveCell.Value = TH30.Caption
ElseIf TH10.Value = True Then
ActiveCell.Value = TH10.Caption
ElseIf TH13.Value = True Then
ActiveCell.Value = TH13.Caption
ElseIf TH02.Value = True Then
ActiveCell.Value = TH02.Caption
ElseIf TH06.Value = True Then
ActiveCell.Value = TH06.Caption
End If
End Sub