Hi seniors,

I am developing an Add-In application for VS .NET. I have managed to create a toolbar (or commandbar). However, I could not delete it. It throws an exception when it reaches cmdbar.Delete() line. The error message is "Unspecified error".

Try
cmdbar = Me.applicationObject.CommandBars("MyAddIn")
cmdbar.Delete()
Catch ex As Exception

End Try

So far, I have found out that the cmdBar.BuiltIn property is True (as Standard toolbar has). This could be the reason why I could not delete this toolbar. But, how could it become True because it is not created by system default.

Anyone have a clue?