VBA- Trying to combine; For each cell in range and Else
All I need is for the following code to work. Should be simple;
PHP Code:
Private Sub Worksheet_Calculate()
For Each cell In Range("W7:W17")
If cell.Value = "Payment Not Required" Then
ActiveSheet.CheckBoxes("Check Box 58").Visible = True
Else
ActiveSheet.CheckBoxes("Check Box 58").Visible = False
End If
Next
If cell.Value > 0 Then
ActiveSheet.CheckBoxes("Check Box 61").Visible = True
Else
ActiveSheet.CheckBoxes("Check Box 61").Visible = False
End If
End Sub
As ever, any help would be greatly appreciated. Upon a successful amendment any further guidance on how to expand the solution to contain other conditions (If's and else's) would also be of use in a bid to learn and be more self sufficient.
Thanks,
Glen
Recent comments
5 years 41 weeks ago
6 years 27 weeks ago
6 years 39 weeks ago
6 years 42 weeks ago
6 years 43 weeks ago
6 years 48 weeks ago
7 years 4 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago