Delete menu

T

Todd Huttenstine

Hey guys

I have a menu called "SMS Functions" on the menu toolbar
at the the top of Excel. Its next to the "Help" menu.

How do I programmatically delete this menu item?


Thank you
Todd Huttenstine
 
S

Soo Cheon Jheong

Todd,

Try
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Sub TEST()

Dim CTL As CommandBarControl
For Each CTL In Application.CommandBars(1).Controls
If Application.Trim(CTL.Caption) = "SMS Functions" Then
CTL.Delete
End If
Next

End Sub
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -


--
Regards,
Soo Cheon Jheong
_ _
^¢¯^
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top