<?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 : Changing Menu Capti&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Changing Menu Capti&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:18:16 +0000</pubDate>
  <lastBuildDate>Fri, 19 Mar 2004 06:26:29 +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=546</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[Changing Menu Capti&#111;n : CommandBars.ActiveMenuBar.Controls(1).CommandBar.Contr...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=546&amp;PID=1395&amp;title=changing-menu-caption#1395</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 546<br /><strong>Posted:</strong> 19 March 2004 at 6:26am<br /><br /> &nbsp;CommandBars.ActiveMenuBar.Controls(1).CommandBar.Contr ols(2).Caption = "FileX"]]>
   </description>
   <pubDate>Fri, 19 Mar 2004 06:26:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=546&amp;PID=1395&amp;title=changing-menu-caption#1395</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Menu Capti&#111;n : Hello! I have the following code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=546&amp;PID=1392&amp;title=changing-menu-caption#1392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=419">rdtcgriffin</a><br /><strong>Subject:</strong> 546<br /><strong>Posted:</strong> 19 March 2004 at 2:50am<br /><br /><P>Hello!</P><P>I have the following code to create the menu:</P><P>&nbsp;&nbsp;&nbsp; Set ControlView = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 1, "File", -1, False)<BR>&nbsp;&nbsp;&nbsp; With ControlView.CommandBar.Controls<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, 2, "New", -1, False)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 3, "Open", -1, False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, 4, "Close", -1, False<BR>&nbsp;&nbsp;&nbsp; End With<BR></P><P>Then, later on I would lile to change the captions of the menu. For the main menu (File)&nbsp;I can change teh caption using:</P><P>&nbsp;&nbsp;&nbsp; CommandBars.ActiveMenuBar.Controls.Item(1).Caption = "FileX"</P><P>But for&nbsp;it's submenus, I get "Invalid procedure call or argument" error message when I try this:<BR>&nbsp;&nbsp;&nbsp; CommandBars.ActiveMenuBar.Controls.Item(2).Caption = "OpenX"</P><P>What method should I use so that I can change the captions? Also, is the solution the same for toolbars?</P><P>Thanks in advance!</P><P>Rommel</P><P>=========</P><P>sorry, should have posted in VB area</P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by rdtcgriffin</span>]]>
   </description>
   <pubDate>Fri, 19 Mar 2004 02:50:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=546&amp;PID=1392&amp;title=changing-menu-caption#1392</guid>
  </item> 
 </channel>
</rss>