Solved

Customer Letters from Outlook Contacts

Posted on 2011-09-12
8
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

751 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