Hi Francis
Start here
http://www.rondebruin.nl/menuid.htm
To disable the whole bar use
Application.CommandBars("Document").Enabled = False
--
Regards Ron de Bruin
http://www.rondebruin.nl
"Francis Ang" wrote in message ...
When you click on the Excel icon which appears on the top left hand corner of
a workbook, several commands become available. Can I disable the command
say 'New Window' using vba? Any help is very much appreciated.