A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Calendar Event Body Field



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 11th 13, 09:27 PM
lms lms is offline
Junior Member
 
First recorded activity at Outlookbanter: Jun 2013
Posts: 8
Default Calendar Event Body Field

I have in the form of my Outlook 2007 contact form, a scipt code that creates a calendar event for the contact that I have opened. In addition to the standard areas of it, I found out that I can add to the body area of the Calendar Event, the words from different fields in the contact itself. So if I want to show the phone number of the contact in the calendar event body field, there is the following where the txtMobile has the title "Mobile Number and then below it, the phone number which comes from the mobile number in the contact which is named Phone4.

There are also othe fields from the contact that we can the same as I just refer to the name of the field.

But for an email address, it does not work. I have tried refering to the email address name "Email" and also the Value field name, and nothing works.....so below is the standard code line and does anyone know what to change so it refers to the email address in the contact? Thanks so much!!

Dim txtMobile

if item.getinspector.modifiedformpages("General").con trols("Phone4").text "" then txtMobile = "Mobile Number" & ": " & vbcrlf & item.getinspector.modifiedformpages("General").con trols("Phone4").text & vbcrlf

itmappt.body =txtMobile
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Write RTF-Body on ItemSend event Thomas Add-ins for Outlook 2 February 12th 07 11:22 AM
PropertyChange event can not detect changes in Body? jiun Outlook and VBA 1 December 23rd 06 09:12 AM
Changing RTF Body on MailItem Read event [email protected] Add-ins for Outlook 3 September 13th 06 07:30 PM
Attachment in separate field instead of in body of message Michiel_Pluim Outlook - Installation 3 March 31st 06 04:18 PM
Just one message/body field allowed ... Vaughan Outlook - Using Forms 1 March 14th 06 04:12 PM


All times are GMT +1. The time now is 11:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.