<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Accessing CommandBars using VBA of InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/84822.aspx</link><pubDate>Wed, 28 Nov 2012 14:47:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84822</guid><dc:creator>sahil1087</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84822.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84822</wfw:commentRss><description>Hi ,&lt;br /&gt;&lt;br /&gt;Can any one help me out with problem below :&lt;br /&gt;&lt;br /&gt;By Using VBA I have opened InfoPath and now I want to use menu buttons using CommandBar.&lt;br /&gt;&lt;br /&gt;Below code is giving me error &amp;quot;Object dostnot support this property or Method.&amp;quot;. So can any one help me which object will help me in retrieving menu buttons from InfoPath.And which methods and properties I can use.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set objExcel = CreateObject(&amp;quot;InfoPath.Application&amp;quot;)&lt;br /&gt;objExcel.XDocuments.NewFromSolution (&amp;quot;C:\Users\centraluser\Desktop\sahil1.xsn&amp;quot;)&lt;br /&gt;&lt;br /&gt;For i =1 to objExcel.CommandBars.Count&lt;br /&gt; Msgbox objExcel.CommandBars(i).name&lt;br /&gt;Next</description></item></channel></rss>