I have Userform with buttons that are connected to codes. Why buttons keeps being pressed after code has been completed? Is there any way to release them?
Button looks like this after clicking on it:
Button code:
Private Sub ToggleButton2_Click() ThisWorkbook.Worksheets("Price calculation").Activate Application.ScreenUpdating = False ThisWorkbook.Sheets("Price calculation").Unprotect Password:="123" Range("1867:1979").EntireRow.Hidden = False ActiveSheet.Shapes("Rectangle: Rounded Corners 76").Visible = False ActiveSheet.Shapes("Rectangle: Rounded Corners 244").Visible = True ActiveWindow.ScrollRow = 1867 ThisWorkbook.Sheets("Price calculation").Protect Password:="123" Application.ScreenUpdating = True End Sub 