J
Joanne
Hello, I added the following code to create a new control in the "Text"
command bar . The control is there when I right click in the document but
there is a huge amount of space between this control and the one before it.
I'm not sure what's wrong here. Any help would be appreciated.
_____________________________________________
Private Sub Document_Open()
Dim NewControl As CommandBarControl
CustomizationContext = NormalTemplate
Set NewControl = ActiveDocument.CommandBars("Text").Controls.Add
NewControl.BeginGroup = True
NewControl.Caption = "Insert Date"
NewControl.OnAction = "TestCalendar"
End Sub
command bar . The control is there when I right click in the document but
there is a huge amount of space between this control and the one before it.
I'm not sure what's wrong here. Any help would be appreciated.
_____________________________________________
Private Sub Document_Open()
Dim NewControl As CommandBarControl
CustomizationContext = NormalTemplate
Set NewControl = ActiveDocument.CommandBars("Text").Controls.Add
NewControl.BeginGroup = True
NewControl.Caption = "Insert Date"
NewControl.OnAction = "TestCalendar"
End Sub