PC Review


Reply
Thread Tools Rate Thread

Distribution Lists Not Bolded (via VBA)

 
 
granville houldsworth
Guest
Posts: n/a
 
      27th Feb 2008
I wrote some VBA code that creates about 100 EMails and pastes the contents of worksheets into the bodies, and places distribution lists in To and BCC. 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.

Although I have saved my user a great deal of time by creating 100 Emails in about 10 seconds, they still must spend a lot of time 'prepping' the distribution lists before sending the Emails.

On the Microsoft site, I found that this was done "by design" to save memory!

Is there any known workaround for this issue?

Thanks,


Randy
 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      27th Feb 2008


Randy, call the MailItem's Recipients.ResolveAll function. If the addresses
can be resolved they will be shown underlined.

--
Best regards
Michael Bauer - MVP Outlook
Use Outlook Categories? This is Your Tool:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Tue, 26 Feb 2008 20:38:44 -0600 schrieb granville houldsworth:

> I wrote some VBA code that creates about 100 EMails and pastes the

contents of worksheets into the bodies, and places distribution lists in To
and BCC. 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.
>
> Although I have saved my user a great deal of time by creating 100 Emails

in about 10 seconds, they still must spend a lot of time 'prepping' the
distribution lists before sending the Emails.
>
> On the Microsoft site, I found that this was done "by design" to save

memory!
>
> Is there any known workaround for this issue?
>
> Thanks,
>
>
> Randy

 
Reply With Quote
 
granville houldsworth
Guest
Posts: n/a
 
      27th Feb 2008
Michael - thanks, that's just what I was looking for. I have now incorporated the MailItem's Recipients.ResolveAll function.

However, my distribution lists are still not becoming bold.

Here's a code sample:

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

The fake distribution list names are caught by the "If Not myRecipients.ResolveAll Then" test, but the valid distribution lists are still not being changed to bold.

Any additional information will be appreciated.


Randy
 
Reply With Quote
 
Brian Tillman
Guest
Posts: n/a
 
      27th Feb 2008
granville houldsworth <(E-Mail Removed)> wrote:

> Michael - thanks, that's just what I was looking for. I have now
> incorporated the MailItem's Recipients.ResolveAll function.
>
> However, my distribution lists are still not becoming bold.
>
> Here's a code sample:


If possible, please discuss programming in one of the programming groups,
like microsoft.public.outlook.program_vba or
microsoft.public.outlook.program_addins
--
Brian Tillman [MVP-Outlook]

 
Reply With Quote
 
granville houldsworth
Guest
Posts: n/a
 
      27th Feb 2008
Ok - sorry 'bout that. Didn't know it wasn't allowed. Thanks for the alternative sites.

Randy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Distribution Lists Not Bolded (via VBA) GHH Microsoft Outlook VBA Programming 2 28th Feb 2008 10:08 PM
Distribution Lists sourced from linked SharePoint Contact Lists =?Utf-8?B?TWFyY2VsYQ==?= Microsoft Outlook Contacts 4 17th Jul 2006 12:08 AM
how to sort list, bolded items from no bolded? =?Utf-8?B?dGNkNTA=?= Microsoft Excel Misc 1 9th Jul 2005 10:29 PM
'Distribution Lists' versus 'Personal Distribution Lists' =?Utf-8?B?UGV0ZSBUaGUgT3o=?= Microsoft Outlook Discussion 5 18th Jul 2004 05:56 PM
Size Limits of Distribution Lists & How to use existing lists as sources from which to create other lists =?Utf-8?B?aGFiYWRhaTE=?= Microsoft Outlook Discussion 1 27th Apr 2004 04:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 AM.