A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Distribution Lists Not Bolded (via VBA)



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old February 27th 08, 08:03 PM posted to microsoft.public.outlook.program_vba
GHH
external usenet poster
 
Posts: 2
Default Distribution Lists Not Bolded (via VBA)

I wrote some VBA to create about 100 EMails, paste the contents of Excel
worksheets into the bodies, place distribution lists in To and BCC, and save
the Emails to the Drafts folder. The distribution lists do not populate and
turn bold/underlined as they do when manually selected and inserted.

In order to get them to do so, the user has to open each Email and wait --
some will populate themselves, and others have to be manually selected.

I tried to fix this issue by using the ResolveAll method as shown below, but
the distribution lists still are not bold/underlined.

Set objEmail = objOutlook.CreateItem(0) ' olMailItem
Set myRecipients = objEmail.Recipients
With objEmail
.To = strto
.CC = strCC
.BCC = strBCC
.Subject = strSubject
.Body = strbody
.Save
End With
If Not myRecipients.ResolveAll Then
For Each myRecipient In myRecipients
myRecipient.Resolve
If Not myRecipient.Resolved Then
MsgBox myRecipient.Name
End If
Next
End If

Can anyone tell me what I'm doing wrong?

Thanks,

Randy
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Distribution list that includes other distribution lists. Mike Outlook and VBA 2 January 10th 08 06:41 AM
Adding distribution lists to a master distribution list. OldCoder Outlook - Using Forms 1 January 8th 08 09:01 PM
Distribution Lists Sarah Outlook - Using Contacts 1 December 1st 06 06:28 PM
Adding mutliple distribution lists into a distribution list? Abel Outlook - Using Contacts 2 August 30th 06 05:51 PM
Distribution Lists sourced from linked SharePoint Contact Lists Marcela Outlook - Using Contacts 4 July 17th 06 12:08 AM


All times are GMT +1. The time now is 03:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.