<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create a menu item with vba in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11690416#M1935</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you consider to use the &lt;A href="https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/AutoCAD-LT/files/GUID-19459659-1DF0-4FA4-B16E-4DEF6FBEA040-htm.html" target="_blank" rel="noopener"&gt;"CUI" command to build your menu?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess is a better solution than build by a code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope can help u.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 11:57:05 GMT</pubDate>
    <dc:creator>seabrahenrique</dc:creator>
    <dc:date>2023-01-19T11:57:05Z</dc:date>
    <item>
      <title>How to create a menu item with vba</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11689838#M1934</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I found this function to create menu:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Sub AddMenus()
'Jonathan D. Kriek
Dim currMenuGroup As AcadMenuGroup
Dim newMenu As AcadPopupMenu
Dim newMenuItem As AcadPopupMenuItem

Set currMenuGroup = ThisDrawing.Application.MenuGroups.Item(0)

On Error Resume Next

'Assign new menu
Set newMenu = currMenuGroup.Menus.Item("TrinityTools")

'If menu doesn't exist then add it
If newMenu Is Nothing Then
Set newMenu = currMenuGroup.Menus.Add("TrinityTools")
End If

'Check if Menu is displayed on MenuBar
If Not newMenu.OnMenuBar Then

'Add the eBLoader macro to the menu
Set newMenuItem = newMenu.AddMenuItem(newMenu.count + 1, _
"Release To eB", "-vbarun eBLoader ")
newMenuItem.HelpString = "Release To eB"

'Add the DrawingTypeLoad macro to the menu
Set newMenuItem = newMenu.AddMenuItem(newMenu.count + 1, _
"Set Drawing Type", "-vbarun DrawingTypeLoad ")
newMenuItem.HelpString = "Set Drawing Type"

'Display the menu on the menu bar
newMenu.InsertInMenuBar (ThisDrawing.Application.MenuBar.count + 1)
End If

'Save menu
currMenuGroup.Save (acMenuFileCompiled)
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but after run it I cannot see a new menu.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 06:19:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11689838#M1934</guid>
      <dc:creator>m09366023695</dc:creator>
      <dc:date>2023-01-19T06:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a menu item with vba</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11690416#M1935</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you consider to use the &lt;A href="https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/AutoCAD-LT/files/GUID-19459659-1DF0-4FA4-B16E-4DEF6FBEA040-htm.html" target="_blank" rel="noopener"&gt;"CUI" command to build your menu?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess is a better solution than build by a code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope can help u.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 11:57:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11690416#M1935</guid>
      <dc:creator>seabrahenrique</dc:creator>
      <dc:date>2023-01-19T11:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a menu item with vba</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11690914#M1936</link>
      <description>&lt;P&gt;I writing a macro and need to a menu to show user.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:44:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11690914#M1936</guid>
      <dc:creator>m09366023695</dc:creator>
      <dc:date>2023-01-19T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a menu item with vba</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11691338#M1937</link>
      <description>&lt;P&gt;Menus are not used very much anymore. By default, it is off and only the ribbon shows. Do you have MENUBAR set to 1?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 18:23:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-create-a-menu-item-with-vba/m-p/11691338#M1937</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-01-19T18:23:55Z</dc:date>
    </item>
  </channel>
</rss>

