XLL+ Class Library

Menus Sample

Remarks

This project demonstrates how to use the CXlMenu class to add a menu to Excel's main application menu bar, and how to remove it again.

Functions used

CXlMenu
CXlMenu::SetTexts
CXlMenu::AddItem
CXlMenu::Create
CXlMenu::Destroy
CXllApp::OnXllOpen
CXllApp::OnXllClose

Project files

If you are using MS Developer Studio 6, then you should open the project file Menus.dsp.

If you are using MS Visual Studio .NET 2002, then you should open the solution file Menus.sln or the project file Menus.vcproj.

If you are using MS Visual Studio .NET 2003, then you should open the solution file Menus71.sln or the project file Menus71.vcproj.

If you are using MS Visual Studio 2005, then you should open the solution file Menus8.sln or the project file Menus8.vcproj.

See Also

List of Sample Projects | Samples and Walkthroughs | Advanced menus sample