/******************************************************************************
 *  Author: Chris West
 * Purpose: Disable all of the menus and menu items in Excel 2003 or lower.
 *****************************************************************************/
WScript.echo("Please make sure that Microsoft Excel is closed and then press OK.");
objExcel = new ActiveXObject("Excel.Application");
with(objExcel.Application.CommandBars("Worksheet Menu Bar"))
{
	for(i = 1; i <= Controls.Count; i++)
		Controls(i).Enabled = false;
}
objExcel.Application.Workbooks.Add();
WScript.echo("All of the menus in Excel have been disabled.");
objExcel.Visible = true;