Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default Help with Outlook & a movie list

Andrew


I've received details on creating emails from Excel using macros. Can
anyone tell me how to assign a Category from the Options Tab to an Outlook
email message created with an Excel macro?


Use the Categories property.

Sub test()

Dim olapp As Outlook.Application
Dim olmail As Outlook.MailItem

Set olapp = New Outlook.Application
Set olmail = olapp.CreateItem(olMailItem)

With olmail
.To = "
.Subject = "Test Category"
.Body = "This is a category test"
.Categories = "Phone Calls"
.Send
End With

Set olmail = Nothing
Set olapp = Nothing

End Sub

See more on sending emails here

http://www.dicks-clicks.com/excel/olSending.htm

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with Outlook & a movie list

Dick,

Thanks for your note. I'm sorry that I missed it when you replied. But
I'll give it a go later today. I'll even try it with an autosignature.

Thanks again
Andrew.


Dick Kusleika wrote in message ...
Andrew


I've received details on creating emails from Excel using macros. Can
anyone tell me how to assign a Category from the Options Tab to an

Outlook
email message created with an Excel macro?


Use the Categories property.

Sub test()

Dim olapp As Outlook.Application
Dim olmail As Outlook.MailItem

Set olapp = New Outlook.Application
Set olmail = olapp.CreateItem(olMailItem)

With olmail
.To = "
.Subject = "Test Category"
.Body = "This is a category test"
.Categories = "Phone Calls"
.Send
End With

Set olmail = Nothing
Set olapp = Nothing

End Sub

See more on sending emails here

http://www.dicks-clicks.com/excel/olSending.htm

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I put movie titles in alphabetical order Allan New Users to Excel 3 February 24th 08 02:12 AM
Autofilter for movie database [email protected] Excel Discussion (Misc queries) 4 February 5th 07 05:06 AM
Sorting movie titles? skipping The, A, An etc? Mr B Excel Discussion (Misc queries) 5 July 9th 05 08:24 PM
Help with Outlook & a movie list Andrew[_27_] Excel Programming 0 April 2nd 04 10:38 AM
Active movie control ROBERTO Excel Programming 0 January 28th 04 04:41 PM


All times are GMT +1. The time now is 08:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"