Link to home
Start Free TrialLog in
Avatar of Bonbonfera_Tim_Keenan
Bonbonfera_Tim_KeenanFlag for United States of America

asked on

insert field in outlook 2010 email

I would like to use fields to insert information about clients into the body of an Outlook 2010 oft file (email template.)  I know how to do this in a Word document, but  not an email.

I have an excel file with The Salutation, Email Address and Login and Password to drive the generation of the emails.  How do I insert  fields in the email body so I can have login and password show up in the correct spot?

I have existing VBA code to generate the email and insert the Salutation at the top.  I just don't know how to put in the field , so I can reference the field name in my VBA code.

Thanks,
tk
ASKER CERTIFIED SOLUTION
Avatar of Bonbonfera_Tim_Keenan
Bonbonfera_Tim_Keenan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Helen Feddema
Once you have created (and saved) your custom email form, either as a template (.oft) file or by publishing it to your Personal or Organizational library, you then have to put the data from Excel into the fields you have created.  Here is the syntax for referencing a custom field on an Outlook form:
Set ups = Item.UserProperties
ups("CustomProperty") = strValue

Open in new window

BTW, if you are inserting bookmarks, this sounds more like a Word document than an Outlook form.  Inserting a field on an Outlook form is generally done using the Field Chooser, in Design view.