hello dear friends just registered in here i have a problem in excel vba
i made a user form with about 60 toggle buttons to show hide accounts in the main sheet
so my problem is i wanna make a code that if change the name of the account in the sheet the caption in the toggle button changes too any help would be much appreciated
this is the code but it doesn't work at all
Private Sub Worksheet_Activate()
ToggleButtons("ToggleButton19").Caption = Sheets("Sheet1").Range("J3")
End Sub
i made a user form with about 60 toggle buttons to show hide accounts in the main sheet
so my problem is i wanna make a code that if change the name of the account in the sheet the caption in the toggle button changes too any help would be much appreciated
this is the code but it doesn't work at all
Private Sub Worksheet_Activate()
ToggleButtons("ToggleButton19").Caption = Sheets("Sheet1").Range("J3")
End Sub