S
sajin
Hi all ,
I have a button which i added to word addin ("Standard " toolbar) , i
want to delete this button from the "standard" toolbar
i am using vb .net 2005
My code is as follows
Dim oMissing As Object
oMissing = Type.Missing
Dim oCommandBars As Microsoft.Office.Core.CommandBars
Dim oStandardBar As Microsoft.Office.Core.CommandBar
Dim cmdBar As Microsoft.Office.Core.CommandBar
oCommandBars = aApp.CommandBars
oStandardBar = aApp.CommandBars.Add("My bar",
Core.MsoBarPosition.msoBarTop, oMissing, oMissing)
oStandardBar.Visible = True
If MyButton Is Nothing Then
MyButton = oStandardBar.Controls.Add(1)
With MyButton
.Caption = "Theme Manager"
.Style = Core.MsoButtonStyle.msoButtonCaption
.Tag = "Theme manager"
End With
End If
Regards
Sajin
I have a button which i added to word addin ("Standard " toolbar) , i
want to delete this button from the "standard" toolbar
i am using vb .net 2005
My code is as follows
Dim oMissing As Object
oMissing = Type.Missing
Dim oCommandBars As Microsoft.Office.Core.CommandBars
Dim oStandardBar As Microsoft.Office.Core.CommandBar
Dim cmdBar As Microsoft.Office.Core.CommandBar
oCommandBars = aApp.CommandBars
oStandardBar = aApp.CommandBars.Add("My bar",
Core.MsoBarPosition.msoBarTop, oMissing, oMissing)
oStandardBar.Visible = True
If MyButton Is Nothing Then
MyButton = oStandardBar.Controls.Add(1)
With MyButton
.Caption = "Theme Manager"
.Style = Core.MsoButtonStyle.msoButtonCaption
.Tag = "Theme manager"
End With
End If
Regards
Sajin