i'm trying to add the custom menu when the workbook is opened and delete when the workbook is closed, but it doesnt' work, but macro RemoveCustomMenu() and AddCustomMenu() themselves work fine. why there codes dont' work?
Private Sub workbook_BeforeClose(Cancel As Boolean)
Call RemoveCustomMenu
End Sub
Private Sub Workbook_Open()
Call AddCustomMenu
End Sub
Public Sub RemoveCustomMenu()
........................
End Sub
Public Sub AddCustomMenu()
.........................
End Sub
Private Sub workbook_BeforeClose(Cancel As Boolean)
Call RemoveCustomMenu
End Sub
Private Sub Workbook_Open()
Call AddCustomMenu
End Sub
Public Sub RemoveCustomMenu()
........................
End Sub
Public Sub AddCustomMenu()
.........................
End Sub