|
-
Mar 3rd, 2005, 09:17 AM
#1
Thread Starter
Lively Member
word vba popup menu
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|