Hi,
I would like a macro button which when clicked will enter "True" in a cell in a different sheet. If you press it again it will enter "False" in that cell, and will just alternate between "True" and "False" when clicked. I found the below but it does not work properly, any ideas would be greatly appreciated.
I would like a macro button which when clicked will enter "True" in a cell in a different sheet. If you press it again it will enter "False" in that cell, and will just alternate between "True" and "False" when clicked. I found the below but it does not work properly, any ideas would be greatly appreciated.
VBA Code:
Sub Button24_Click()
If Worksheets("Mechanics").Cell("B16").Value = "True" Then
Replace Worksheets("Mechanics").Cell("B16").Value, "True", "False"
End If
End Sub