Is menu loaded??

Is menu loaded??

Anonymous
Not applicable
194 Views
2 Replies
Message 1 of 3

Is menu loaded??

Anonymous
Not applicable
How can I determine if a particular menu is loaded
using VBA??

 

 

TIA


--
Matt W
 
There are 3 kinds
of people:
  Those who can count, and those who
can't.
0 Likes
195 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
' Where var is a string (menugroup name)
Function IsMenu(var)
Dim a As Boolean
a = False
For Each Item In ThisDrawing.Application.MenuGroups
If Item.Name = var Then a = True
Next Item
IsMenu = a
End Function

"Matt W" wrote in message news:C8B71AA6960D68E6DBCCFE961E16D99D@in.WebX.maYIadrTaRb...
> How can I determine if a particular menu is loaded using VBA??
>
>
> TIA
>
> --
> Matt W
>
> There are 3 kinds of people:
> Those who can count, and those who can't.
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks!

That's exactly what I was looking
for.


--
Matt W
 
There are 3 kinds of people:
  Those
who can count, and those who can't.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
'
Where var is a string (menugroup name)
Function IsMenu(var)
 Dim a
As Boolean
 a = False
 For Each Item In
ThisDrawing.Application.MenuGroups
   If Item.Name = var Then a =
True
 Next Item
 IsMenu = a
End Function

"Matt W"
<mattw@bvhis.com> wrote in message

href="news:C8B71AA6960D68E6DBCCFE961E16D99D@in.WebX.maYIadrTaRb">news:C8B71AA6960D68E6DBCCFE961E1...
...
>
How can I determine if a particular menu is loaded using VBA??



> TIA
>
> --
> Matt W


> There are 3 kinds of people:
>   Those who can count,
and those who can't.
>
0 Likes