<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>InfoPath 2003 Progrmaatically submit and the form</title><link>https://www.infopathdev.com:443/forums/thread/48147.aspx</link><pubDate>Thu, 22 Oct 2009 14:01:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48147</guid><dc:creator>Wheels</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48147</wfw:commentRss><description>&lt;p&gt;Good morning all.&lt;/p&gt;
&lt;p&gt;I am trying to envoke the SendKeys method to mimick the File --&amp;gt; Send To Mail Reipient on an InfoPath 2003 form.&lt;/p&gt;
&lt;p&gt;So far I have the following:&lt;/p&gt;
&lt;p&gt;Dim objShell&lt;/p&gt;
&lt;p&gt;Set objShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;br /&gt;objShell.SendKeys &amp;quot;%(f)&amp;quot; &amp;#39;ALT File&lt;br /&gt;objShell.SendKeys &amp;quot;(d)&amp;quot;&amp;nbsp; &amp;#39;Send To Mail Recipient&lt;br /&gt;objShell.SendKeys &amp;quot;%(s)&amp;quot; &amp;#39;Send&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The problem is I need to populate the To and Subject fileds (or&amp;nbsp;the To at a minimum).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Does anyone know how to set the To field?&lt;/p&gt;
&lt;p&gt;Thank you (in advance), WHEELS&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>