Link contacts with emails

Status
Not open for further replies.

DoraK

New Member
Outlook version
Email Account
POP3
could you please assist?

I would like to link my contacts with their emails and see the emails within my custom contact's form.

In this form i have put a nickname for each one contact, which matches with a custom field named: "PERSON" in each one email
 
You'll need to do a search for that field and return the results... but outlook 2007 and older has a similar feature built in - it's called Activities. (Newer versions have the people pane which is not as nice.)

I don't seem to have a screenshot of Activities in outlook 2007 - the first one on this page is from 2010 - Outlook 2010 & Contact Activities
 
You'll need to do a search for that field and return the results... but outlook 2007 and older has a similar feature built in - it's called Activities. (Newer versions have the people pane which is not as nice.)

I don't seem to have a screenshot of Activities in outlook 2007 - the first one on this page is from 2010 - Outlook 2010 & Contact Activities

....

Thank you for your reply but seems my request was not clear.

I do not want to use search or activities
- i want to keep the emails linked to the contact, permanently

ie. as if i was using a BCM.
 
you want to add them to the contact as links or attachments?
 
Will you be doing this as messages arrive or running it manually on specific messages?

This macro shows how to do a lookup of contacts - Assign Categories to Messages using Contact Category - you'd use this method to find the contact and would need to change the code to link - this creates the message id:
strID = objMail.EntryID
strLink = "outlook:" & strID
strLinkText = objMail.Subject

then use word commands to create the hyperlink:

Set objDoc = objInsp.WordEditor
Set objWord = objDoc.Application
set objSel = objWord.Selection
objDoc.Hyperlinks.Add objSel.Range, strLink, "", "", strLinkText, ""
objSel.Range.InsertBefore "Link to message: "
 
seems there is no solution for my request..
as per my previous :"I would like to link my contacts with their emails and see the emails within my custom contact's form.".

so, maybe you could assist on following:

I've tried to put ViewCtl into my custom contact form and I've changed the default folder to show my folder named: important, (root: outlook:\\my emails\important.)
- it works fine when I modify the form but when I publish it, shows the inbox contents !!

(
custom form.jpg
please see the attached print sceen)
 
Do you want links to the mail or do you want a list, such as you'd get with instant search, Activities, or the People Pane? (The people pane would be easier and safer than the view control.)
 
Do you want links to the mail or do you want a list, such as you'd get with instant search, Activities, or the People Pane? (The people pane would be easier and safer than the view control.)

.....................................

firstly Iwas trying to find a way to link specific emails PERMANTLY (not like search or activities, which takes much time to find the emails) using a common field (custom field: "PERSON"-into my emails folder -which is equal with the field "NickName" into my custom Contact form.

but i understood from your replies, that either my request was not clear or there is no way to do it.
(unless there is a way...)

so, as an alternative, I've tried to use the view control.

please note:

-I'm just a user- not a programmer
-I'm using OUTLOOK 2007 (without BCM)
 
Using the view control is basically using Search or Activities and requires a filter - it is not "permanent". Because its a filtered view, it might be faster than Activities (which uses the old, slow search). The view control fell out of favor due to exploits and I'll need to look for my filter samples. I have a sample of using vba to apply a filtered view here - Apply Filtered Views Using a Macro - you'd use a similar filter in the code for the view control.

You can add a hyperlink (easier, because i have code samples) or object linking (I don't think i have code samples) or you can attach the original (usually not recommended unless you plan to move messages around, which can break the links). I recommend doing this as the message arrives going forward, run a macro once to do it on existing messages.

The difference between a hyperlink and object link: the hyperlink can use the item subject as the link text while embedded shows the envelope icon and the subject.

To do any of it, you're going to need to learn some vba. I don't have any full macros that do exactly this.

the closest i have is a macro that creates a hyperlink to a contact in a task. it could easily be changed to create a hyperlink to email in a contact, but you'll need to add the filter (the link i posted earlier has an example).

Code:
Sub GetContactLink()
    Dim objContact As Outlook.ContactItem
    Dim objTask As Outlook.TaskItem
    Dim strID As String
    Dim strLink, strLinkText As String

Set objContact = Application.ActiveExplorer.Selection.Item(1)
    strID = objContact.EntryID
    strLink = "outlook:" & strID
    strLinkText = objContact.FullName

Set objTask = Application.CreateItem(olTaskItem)
    Set objInsp = objTask.GetInspector
    Set objDoc = objInsp.WordEditor
    Set objSel = objDoc.Windows(1).Selection

With objTask
    objDoc.Hyperlinks.Add objSel.Range, strLink, "", "", strLinkText, ""
    objSel.Range.InsertBefore "Link to "
           
    .Display

End With

End Sub


FWIW, i'd probably work with the email address fields unless there is some reason why you need to use a custom field. It will save you the hassle of adding the field.
 
thank you but i do not wish to use hyperlinks or object link.

let's concetrate on "view control" and how to make it to show (after publishing my custom contact form) instead of inbox, my folder named: important, (root: outlook:\\my emails\important.)

view name: **Β-*300---PERSON
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Unable to link the BCM contacts twice with account contacts BCM (Business Contact Manager) 1
S Outlook 2007 Contacts Form - how to link to other contacts? Outlook VBA and Custom Forms 2
C "The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file location" Using Outlook 1
P How did hacker cause link to delete and archive containing email? Using Outlook 6
J O365 - Adding Shared Google Calendar ICS link issue in O365 Using Outlook 0
M Outlook 2013 Script Assistance - Save Opened Link with Subject Added Outlook VBA and Custom Forms 1
A How to open a specific link automatically with outlook 2016 Outlook VBA and Custom Forms 6
M Adding Subject to this Link-Saving VBA Outlook VBA and Custom Forms 5
P Insert link in email body to attached document in Outlook 365 Outlook VBA and Custom Forms 0
dyny723 Outlook 2016: Code to link a contact to emails received from that contact Outlook VBA and Custom Forms 1
D launching a link in google Using Outlook 1
S Display PF contact folder items to select contact to link to appointment Outlook VBA and Custom Forms 1
N Creating a button or link to a form in the Organizational Forms Library Outlook VBA and Custom Forms 3
B Wanting to run a script that will filter any body that has a russian link in it. Outlook VBA and Custom Forms 5
J Tasks - the missing link... for me at least. Using Outlook 4
A How to open a specific link automatically with outlook Outlook VBA and Custom Forms 13
G Outlook item link Using Outlook 0
S Calendar loops when clicking on calendar link to start it Using Outlook 1
H Search and delete part of a link inside HTML body message Outlook VBA and Custom Forms 2
J Unable to link email messages in BCM using a single microsoft office 365 account in outlook 2013 BCM (Business Contact Manager) 1
T Automatically open link in email received Outlook VBA and Custom Forms 33
G Outlook email link mistake Using Outlook 1
iwshim Can I add an Unsubscribe link to Outlook outgoing email? Something like this? Using Outlook 1
M Link POP account with Outlook.fr Using Outlook 1
anoble1 How to create an email with a link to add a calendar appointment Using Outlook 1
S Possible to link to ics file without importing? Using Outlook 4
C From an email open a link but not the new window Using Outlook 1
J Outlook Rule - Create Link in Forwarding Message Outlook VBA and Custom Forms 2
T link multiple emails to one project in one way BCM (Business Contact Manager) 1
F How can i copy the mail subject and the link to the mail to th clipboard? Outlook VBA and Custom Forms 3
R Mailto link inside Outlook 2010 being cached? Using Outlook 1
S How to add a new menu item to a right click context menu of a link Using Outlook 5
A Outlook to Onenote link stopped working Using Outlook 7
J Nothing happens after clicking on the link in my emails Using Outlook 3
M How do I link a drop down box to a percent complete box Using Outlook 4
K Outlook 2010 - Link Outlook items to tasks? Using Outlook 1
J Link Contact to specific from address Using Outlook 2
A meeting notes (send to onenote) link in 2013 Using Outlook 5
B link to group schedules from Today screen Using Outlook 2
D Link multiple messages to opportunity BCM (Business Contact Manager) 1
R Add a link to a custom form Using Outlook 0
V Can't click on embedded link in Outlook e-mails--error message "not allowed" Using Outlook 6
M BCM 2010 Link to Record (very) slow BCM (Business Contact Manager) 2
S Can I link custom designed forms to a specific calendar? Using Outlook 5
F When I click on link in email nothing occurs Using Outlook 7
S Clickable link on Outlook HTML Body Outlook VBA and Custom Forms 3
C How do I enable a link in an e-mail in Outlook 2007? Using Outlook 4
S Reminder (Off / On) Link With Reminder Data/Time Outlook VBA and Custom Forms 3
J Loading and Scaning a link inside of an email and ... Outlook VBA and Custom Forms 1
G regex to search for link in attachments? Outlook VBA and Custom Forms 2

Similar threads

Back
Top