<?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 : Looping buttons on a command bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : Looping buttons on a command bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 17:58:36 +0000</pubDate>
  <lastBuildDate>Wed, 30 Aug 2006 08:49:16 +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=4919</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[Looping buttons on a command bar : Try  Dim x as CommandBarControl For...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4919&amp;PID=15327&amp;title=looping-buttons-on-a-command-bar#15327</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4919<br /><strong>Posted:</strong> 30 August 2006 at 8:49am<br /><br /><DIV>Try</DIV><DIV>&nbsp;</DIV><DIV>Dim x as CommandBarControl</DIV><DIV>For each x in ToolBar<strong>.Controls</strong></DIV><DIV>&nbsp; if x.id &lt;10 then x.visible = false</DIV><DIV>Next</DIV>]]>
   </description>
   <pubDate>Wed, 30 Aug 2006 08:49:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4919&amp;PID=15327&amp;title=looping-buttons-on-a-command-bar#15327</guid>
  </item> 
  <item>
   <title><![CDATA[Looping buttons on a command bar : Hi,  I&amp;#039;m trying to loop...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4919&amp;PID=15322&amp;title=looping-buttons-on-a-command-bar#15322</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=415">PhilJeary</a><br /><strong>Subject:</strong> 4919<br /><strong>Posted:</strong> 30 August 2006 at 4:58am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I'm trying to loop through the buttons on a command bar.</DIV><DIV>&nbsp;</DIV><DIV>I have added a command bar using:</DIV><DIV>&nbsp;</DIV><DIV>Dim ToolBar As CommandBar<BR>Set ToolBar = CommandBars.Add("Standard", xtpBarTop)</DIV><DIV>&nbsp;</DIV><DIV>I have added a load of buttons using (for example):</DIV><DIV>&nbsp;</DIV><DIV>.Add xtpControlButton, 1, "Test"</DIV><DIV>&nbsp;</DIV><DIV>I now need to do something like:</DIV><DIV>&nbsp;</DIV><DIV>Dim x as CommandBarControl</DIV><DIV>For each x in commandbars("standard")</DIV><DIV>&nbsp; if x.id &lt;10 then x.visible = false</DIV><DIV>Next x</DIV><DIV>&nbsp;</DIV><DIV>However, I can't see to find the syntax I need for declaring X and referencing the command bar I created called "Standard".</DIV><DIV>&nbsp;</DIV><DIV>Any help would be much appreciated.</DIV>]]>
   </description>
   <pubDate>Wed, 30 Aug 2006 04:58:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4919&amp;PID=15322&amp;title=looping-buttons-on-a-command-bar#15322</guid>
  </item> 
 </channel>
</rss>