I am using Microsoft Excel 2007.
I want to disable "HOME" and "DATA" Menu bar I Microsoft Excel 2007 using VBA.
I'm using below code but not work.
Private Sub Workbook_Activate() Application.CommandBars("Worksheet Menu Bar").Controls("Data").Enabled = False End Sub