View Single Post
  #4  
Old June 8th 07, 02:36 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default VBA Code on Message form to take me to Appointment form

That's possible only on custom pages, unless you want to use a SendKeys kludge (which I personally avoid).

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/article.aspx?id=54

"LDMueller" wrote in message ...
Sorry I didn't describe it better. I did publish my forms so your suggestion
worked perfectly.

Would you by chance have any code for when the second form opens (e.g. the
Appointment form) so that it sets the focus to the "Start Time" field.

Thanks Sue!

"Sue Mosher [MVP-Outlook]" wrote:

As you describe it, that's not possible. Code runs only on published forms, not on .oft files. If you change your mind and decide to publish the form, though, take a look at the Application.CreateItemFromTemplate method, which is what you'd use to create a new item from an .oft file.



"LDMueller" wrote in message ...
Hello,

I have Outlook 2003. I have a Message form named Equipment.oft and an
Appointment form named Alarm.oft.

I need to create a button on my Message form which will take me to the
Appointment form. Can anyone help me with the code on this.

Thanks in advance!


Ads