VBA 救助
<P>Sub AddASubMenu()</P><P> '获得当前的菜单组***********************<BR> Dim currMenuGroup As AcadMenuGroup<BR> Set currMenuGroup = ThisDrawing.Application.MenuGroups.Item(0)<BR> <BR> '创建新菜单<BR> Dim newMenu As AcadPopupMenu<BR> Set newMenu = currMenuGroup.Menus.Add("冲模")<BR> <BR> '添加菜单项*****************************<BR> Dim macro As String<BR> macro = Chr(vbKeyEscape) + Chr(vbKeyEscape)<BR> '模座<BR> Dim menuItemHuamo As AcadPopupMenuItem<BR> Set menuItemHuamo = newMenu.AddMenuItem(newMenu.Count + 1, & "模座", macro & "?????")</P>
<P>'在菜单栏上显示菜单*******************<BR> newMenu.InsertInMenuBar (ThisDrawing.Application.MenuBar.Count + 1)<BR> <BR>End Sub</P>
<P>??处该怎样编写,窗体代码又该怎样写,才能使菜单和对话框连接起来呢? </P>
<P>有劳了!!</P> 我也有同样的问题,谁能帮忙解答 <p>' 宏定义</p><p>sub pp()</p><p>form1.show</p><p>end sub</p><p>’???的写法</p><p>???="-vbarun pp"</p>
页:
[1]