Jefferson2512
Board Regular
- Joined
- Sep 16, 2019
- Messages
- 53
how to do it in for each loop??
Code:
Private Sub awp()
Set wks = Sheet9
If wks.Range("I3").Offset(0, 0).Text = "Yes" Then
obYes.Value = True
ElseIf wks.Range("I3").Offset(0, 0).Text = "No" Then
obNo.Value = True
ElseIf wks.Range("I3").Offset(0, 0).Text = "N/A" Then
obNa.Value = True
End If
If wks.Range("J3").Offset(0, 0).Text = "Yes" Then
obYes1.Value = True
ElseIf wks.Range("J3").Offset(0, 0).Text = "No" Then
obNo1.Value = True
ElseIf wks.Range("J3").Offset(0, 0).Text = "N/A" Then
obNa1.Value = True
End If
If wks.Range("K3").Offset(0, 0).Text = "Yes" Then
obYes2.Value = True
ElseIf wks.Range("K3").Offset(0, 0).Text = "No" Then
obNo2.Value = True
ElseIf wks.Range("K3").Offset(0, 0).Text = "N/A" Then
obNa2.Value = True
End If