Code:
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
Microsoft.Office.Core.CommandBars commandBars;
Microsoft.Office.Core.CommandBar commandBar;
commandBars =(Microsoft.Office.Core.CommandBars)Application.CommandBars;