?
Solved

Customer Letters from Outlook Contacts

Posted on 2011-09-12
8
Medium Priority
?
280 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
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 
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 1500 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

719 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