cozzagiorgi
New Member
- Joined
- Jun 27, 2018
- Messages
- 41
Hi
I have this sub wich transforms all my unchecked boxes in checked boxes (R) in column B.
How can I add exceptions to this sub?
Some rows will contain the value “S” and those should not be touched by this sub.
I have this sub wich transforms all my unchecked boxes in checked boxes (R) in column B.
Code:
Sub allewählen()
Dim i As Long
Dim lastrow As Long
lastrow = Cells(Rows.Count, "B").End(xlUp).Row
Range("B12:B" & lastrow).Value = "R" 'R = checkedbox
End Sub
How can I add exceptions to this sub?
Some rows will contain the value “S” and those should not be touched by this sub.