<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Preselect sub menu item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Preselect sub menu item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 09:23:20 +0000</pubDate>
  <lastBuildDate>Thu, 23 Dec 2010 09:36:59 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17710</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Preselect sub menu item : That worked!Thanks again for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61976&amp;title=preselect-sub-menu-item#61976</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=489">rdeboer</a><br /><strong>Subject:</strong> 17710<br /><strong>Posted:</strong> 23 December 2010 at 9:36am<br /><br />That worked!<div><br></div><div>Thanks again for your help!</div><div><br></div><div>Happy holidays!</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 23 Dec 2010 09:36:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61976&amp;title=preselect-sub-menu-item#61976</guid>
  </item> 
  <item>
   <title><![CDATA[Preselect sub menu item : Hi,  Of course it doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61957&amp;title=preselect-sub-menu-item#61957</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17710<br /><strong>Posted:</strong> 22 December 2010 at 12:51pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Of course it doesn't work, you need to "open" menu first. With "normal" menu use above code and with Ribbonbar you need to "simulate" <strong>ControlSystemButton</strong> click</DIV><DIV>&nbsp;</DIV><DIV>Dim RibbonBar As RibbonBar<BR>Set RibbonBar = CommandBars.ActiveMenuBar<BR>RibbonBar.ControlSystemButton.Execute<FONT color=#009900> 'Shows menu</FONT></DIV><DIV>&nbsp;</DIV><DIV>.....</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Dec 2010 12:51:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61957&amp;title=preselect-sub-menu-item#61957</guid>
  </item> 
  <item>
   <title><![CDATA[Preselect sub menu item : That seems to work in that sample,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61954&amp;title=preselect-sub-menu-item#61954</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=489">rdeboer</a><br /><strong>Subject:</strong> 17710<br /><strong>Posted:</strong> 22 December 2010 at 11:48am<br /><br />That seems to work in that sample, now im trying to get it to work in the RibbonSample, with the menu you get when you click the logo on the left top, but your code doesn't seem to work on this one :(<div><br></div><div><img src="uploads/489/ribb&#111;n_sample.jpg" height="472" width="559" border="0" /><br><div><br></div><div><div><br></div><div><br></div><div><br></div><div><br></div></div></div>]]>
   </description>
   <pubDate>Wed, 22 Dec 2010 11:48:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61954&amp;title=preselect-sub-menu-item#61954</guid>
  </item> 
  <item>
   <title><![CDATA[Preselect sub menu item : Hi,  Try this:  CommandBars.FindControl(,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61946&amp;title=preselect-sub-menu-item#61946</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17710<br /><strong>Posted:</strong> 22 December 2010 at 8:45am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Try this:</DIV><DIV>&nbsp;</DIV><DIV>CommandBars.FindControl(, ID_MENU_ITEM, True, True).Execute <FONT color=#009900>'Opens menu item<BR></FONT>CommandBars.FindControl(, ID_MENU_SUBITEM, True, True).SetFocus <FONT color=#009900>'Selects subitem</FONT></DIV><DIV><FONT color=#009900></FONT>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#009900></FONT>&nbsp;</DIV><DIV><FONT color=#009900></FONT>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Dec 2010 08:45:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61946&amp;title=preselect-sub-menu-item#61946</guid>
  </item> 
  <item>
   <title><![CDATA[Preselect sub menu item :  I&amp;#039;m not sure if its checked...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61941&amp;title=preselect-sub-menu-item#61941</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=489">rdeboer</a><br /><strong>Subject:</strong> 17710<br /><strong>Posted:</strong> 21 December 2010 at 1:17pm<br /><br />I'm not sure if its checked property.<div><br></div><div>I want to select PageWidth item directly from code. Something like CommandBars.Controls(ID_PAGEWIDTH).Selected = True</div><div><br></div><div>Look at this picture as example:</div><div><br></div><div><img src="uploads/489/SelectItem.jpg" height="448" width="644" border="0" /><br></div>]]>
   </description>
   <pubDate>Tue, 21 Dec 2010 13:17:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61941&amp;title=preselect-sub-menu-item#61941</guid>
  </item> 
  <item>
   <title><![CDATA[Preselect sub menu item : I think you want Control.Checked...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61940&amp;title=preselect-sub-menu-item#61940</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 17710<br /><strong>Posted:</strong> 21 December 2010 at 1:11pm<br /><br />I think you want Control.Checked property<br>]]>
   </description>
   <pubDate>Tue, 21 Dec 2010 13:11:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61940&amp;title=preselect-sub-menu-item#61940</guid>
  </item> 
  <item>
   <title><![CDATA[Preselect sub menu item : Hi,How do i pre select a submenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61939&amp;title=preselect-sub-menu-item#61939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=489">rdeboer</a><br /><strong>Subject:</strong> 17710<br /><strong>Posted:</strong> 21 December 2010 at 12:56pm<br /><br />Hi,<div><br></div><div>How do i pre select a submenu item in CommandBars?</div><div><br></div><div>For instance i have a menu: File -&gt; Zoom and Zoom has 3 items (zoom1, zoom2, zoom3)</div><div><br></div><div>I want to preselect Zoom3, but not execute it yet.</div><div><br></div><div>Something like:</div><div><br></div><div>CommandBars.Controls(ID_ZOOM3).Selected = true</div><div><br></div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 21 Dec 2010 12:56:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17710&amp;PID=61939&amp;title=preselect-sub-menu-item#61939</guid>
  </item> 
 </channel>
</rss>