DougRobertson
Active Member
- Joined
- Sep 22, 2009
- Messages
- 334
- Office Version
- 365
- Platform
- Windows
Hello,
Below is code that I use to have a macro create an email, with the 'To' box containing the Outlook Distribution List "FAMILY".
Normally, in 2007, the "FAMILY" code connects with the "FAMILY" Distribution List in Outlook Contacts, and away we go.
However, even though the word "FAMILY" is entered into the 'To' box, it won't connect it with the Distribution List, and thus it won't recognize any email addresses.
Any ideas?
=====
Set otlApp = CreateObject("Outlook.Application")
Set otlNewMail = otlApp.CreateItem(otlMailItem)
With otlNewMail
.To = "FAMILY"
.Subject = "REPORT"
.Body = Chr(14) & "Hi!"
.Display
.Application.ActiveWindow.WindowState = 2
End With
=====
Thanks,
~ Doug
Below is code that I use to have a macro create an email, with the 'To' box containing the Outlook Distribution List "FAMILY".
Normally, in 2007, the "FAMILY" code connects with the "FAMILY" Distribution List in Outlook Contacts, and away we go.
However, even though the word "FAMILY" is entered into the 'To' box, it won't connect it with the Distribution List, and thus it won't recognize any email addresses.
Any ideas?
=====
Set otlApp = CreateObject("Outlook.Application")
Set otlNewMail = otlApp.CreateItem(otlMailItem)
With otlNewMail
.To = "FAMILY"
.Subject = "REPORT"
.Body = Chr(14) & "Hi!"
.Display
.Application.ActiveWindow.WindowState = 2
End With
=====
Thanks,
~ Doug