Solved

Customer Letters from Outlook Contacts

Posted on 2011-09-12
8
274 Views
Last Modified: 2012-08-14
Hello Everyone -

We currently have a large database of 4,000 contacts in our MS Exchange Public Folders, we sync our public folder to our local Contacts folders as well.

Every year we send out letters to clients based on their anniversary. Is there anyway to create a template that can be accessed/initiated from Outlook? I know we can use Mail Merge settings in Word, however it would be pretty time consuming working through the 4,000 Contacts. Is there a way to bring up the template from an open Contact?
0
Comment
Question by:tecpub
  • 4
  • 4
8 Comments
 
LVL 31

Expert Comment

by:Helen_Feddema
ID: 36524808
My Code Sample #31 demonstrates sending documents made from a Word template to selected contacts (it uses the Outlook Selection object).  But this might not work for you.  Do you want to check every day whether there is a contact who has an anniversary on that day, and send out letters to them?  Are the contacts all in the same folder?  If so, is it the standard Contacts folder, or another folder?

http://www.helenfeddema.com/Files/code31.zip

0
 

Author Comment

by:tecpub
ID: 36526363
Yes, we'd like to browse through our contacts folder and from there send a letter to that person by opening up sort of template. The letter template would import their name and other letter based info into the letter.
0
 
LVL 31

Expert Comment

by:Helen_Feddema
ID: 36526393
Then my code sample should work.  Of course, you will need to modify the template as needed to pick up the info you want from the ContactItem, and the surrounding text.
0
 
LVL 31

Expert Comment

by:Helen_Feddema
ID: 36526399
You could temporarily sort the Contacts folder by Anniversary, so you could quickly find the right ones to select.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:tecpub
ID: 36899518
Thanks. I will try and report back.
0
 
LVL 31

Accepted Solution

by:
Helen_Feddema earned 500 total points
ID: 36904577
Another possibility would be to create a filter string using a Restrict clause based on the Anniversary field, and then the code would only work with contacts whose anniversary is within that range.  Here is a sample, though using another field in MailItems:


'Create exact date range
      strStartDate = Format(DateAdd("d", -5, Date), "m/d/yyyy hh:mm AMPM")
      strEndDate = Format(DateAdd("d", 1, Date), "m/d/yyyy hh:mm AMPM")
      strDateRange = "[CreationTime] >= """ & strStartDate & _
         """ And [CreationTime] <= """ & strEndDate & """"
      Debug.Print "Date range: " & strDateRange
      
      Set itms = fldInbox.Items
      
      If itms.Count = 0 Then
         GoTo CheckFound
      Else
         Set ritms = itms.Restrict(strDateRange)
         intCount = ritms.Count
         
         If intCount = 0 Then
            GoTo CheckFound
         End If
      End If

Open in new window

0
 

Author Comment

by:tecpub
ID: 37015412
Wow that looks great. I'll try this as well and report back.
0
 

Author Closing Comment

by:tecpub
ID: 37474407
Not really sure what the solution is still as it hasnt been fully solved.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Use email signature images to promote corporate certifications and industry awards.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now