pop menu

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top