Mster_Dev24
New Member
- Joined
- Aug 27, 2024
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hi everyone
Im currently trying to deselect a checkbox then a value in a cell are automatically changed to "0" by VBA. I trying to to use the "Workbook_SheetChange"-function but it seems to not work then the value in the actual cell (A1) are automatically changed/updated by a VBA-rutine.
Are there please anyone who can confirm this and what to do instead?
Im currently trying to deselect a checkbox then a value in a cell are automatically changed to "0" by VBA. I trying to to use the "Workbook_SheetChange"-function but it seems to not work then the value in the actual cell (A1) are automatically changed/updated by a VBA-rutine.
VBA Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Range("A1")="0" then
ActiveSheet.CheckBoxes("Kryssruta 137").Value = False
Else
EndIf
EndSub
Are there please anyone who can confirm this and what to do instead?