Solved

Customer Letters from Outlook Contacts

Posted on 2011-09-12
8
277 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
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.
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…

830 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