Hi, All:
I have a custom menu that works great unless you click a chart sheet, and then it hides. I'm assuming that XL uses a different menubar for a chart sheet, or rewrites it.
In either case, I can trap it @ the SheetActivate procedure (see below), but if I delete that custom and add one, then it vanishes for the other sheet types.
Any ideas? I tried just making it visible, and that didn't work.
Thanks,
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors
I have a custom menu that works great unless you click a chart sheet, and then it hides. I'm assuming that XL uses a different menubar for a chart sheet, or rewrites it.
In either case, I can trap it @ the SheetActivate procedure (see below), but if I delete that custom and add one, then it vanishes for the other sheet types.
Any ideas? I tried just making it visible, and that didn't work.
Code:
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
On Error Resume Next
'MsgBox Sh.Type
If Sh.Type = 3 Then
'Excel.Application.CommandBars("Worksheet Menu Bar").Controls("Worksheets").Visible = True
'Call DeleteWorksheetsMenu
'Call AddWorksheetsMenu
End If
End Sub
Thanks,
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors