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.
FYI, there is a newsgroup specifically for Outlook forms issues "down the hall" at microsoft.public.outlook.program_forms or, via web interface, at
http://www.microsoft.com/office/comm...rogram_f orms
--
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 ...
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!