[color=darkblue]Sub[/color] disableCustommizeToolbar()
CommandBars("view").FindControl(ID:=30045).Enabled = [color=darkblue]False[/color]
CommandBars("Toolbar List").Enabled = [color=darkblue]False[/color]
[color=darkblue]Set[/color] myControls = CommandBars.FindControls(Type:=msoControlButton, ID:=797)
[color=darkblue]For[/color] [color=darkblue]Each[/color] myct [color=darkblue]In[/color] myControls
myct.Enabled = [color=darkblue]False[/color]
[color=darkblue]Next[/color]
[color=darkblue]End[/color] [color=darkblue]Sub[/color]
[color=darkblue]Sub[/color] EnableCustommizeToolbar()
CommandBars("view").FindControl(ID:=30045).Enabled = [color=darkblue]True[/color]
CommandBars("Toolbar List").Enabled = [color=darkblue]True[/color]
[color=darkblue]Set[/color] myControls = CommandBars.FindControls(Type:=msoControlButton, ID:=797)
[color=darkblue]For[/color] [color=darkblue]Each[/color] myct [color=darkblue]In[/color] myControls
myct.Enabled = [color=darkblue]True[/color]
[color=darkblue]Next[/color]
[color=darkblue]End[/color] Sub