S
sarah
i have a popup menu and i want there to be no more than two controls on it as
some of the controls i add are duplicating
is there anyway of saying only add control if there are less than two
controls already.
or else saying if controls.count > 2 then delete the last one in?
here's my code for adding a control
With clarpop.Controls.Add(Type:=msoControlButton, Temporary:=True)
.Caption = Trim(mi)
.Visible = True
.BeginGroup = True
.FaceId = 163
End With
thanks
some of the controls i add are duplicating
is there anyway of saying only add control if there are less than two
controls already.
or else saying if controls.count > 2 then delete the last one in?
here's my code for adding a control
With clarpop.Controls.Add(Type:=msoControlButton, Temporary:=True)
.Caption = Trim(mi)
.Visible = True
.BeginGroup = True
.FaceId = 163
End With
thanks