Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 267
Default outlook task recipient

I can send a task to my own outlook but cant set another recipient using the
recipient command (it doesnt like it) (or maybe it just doesnt like me) what
code should I be using instead?

Dim olApp As Outlook.Application
Dim olTsk As TaskItem

Set olApp = New Outlook.Application
Set olTsk = olApp.CreateItem(olTaskItem)

With olTsk
..Recipients - ("Salter John")
..Subject = "Update Web Site"
..Status = olTaskInProgress
..Importance = olImportanceHigh
..DueDate = DateValue("06/26/03")
..TotalWork = 40
..ActualWork = 20
..Save
End With

Set olTsk = Nothing
Set olApp = Nothing

End Sub

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default outlook task recipient


hi,

Try changing your ".recipients..." to
Code:
--------------------
.to
--------------------


There are lots of examples on Ron's site, 'Example Code for sending
mail from Excel' (http://www.rondebruin.nl/sendmail.htm), including this
one, 'Tips for the Outlook object model examples'
(http://www.rondebruin.nl/mail/tips2.htm), which shows ".recipients.add"
being used for adding a distribution list.

hth
Rob


--
broro183

Rob Brockett. Always learning & the best way to learn is to
experience...
------------------------------------------------------------------------
broro183's Profile: http://www.thecodecage.com/forumz/member.php?userid=333
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=99416

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 267
Default outlook task recipient

hi
sorry it still comes back with "object does not support this property"

"broro183" wrote:


hi,

Try changing your ".recipients..." to
Code:
--------------------
.to
--------------------


There are lots of examples on Ron's site, 'Example Code for sending
mail from Excel' (http://www.rondebruin.nl/sendmail.htm), including this
one, 'Tips for the Outlook object model examples'
(http://www.rondebruin.nl/mail/tips2.htm), which shows ".recipients.add"
being used for adding a distribution list.

hth
Rob


--
broro183

Rob Brockett. Always learning & the best way to learn is to
experience...
------------------------------------------------------------------------
broro183's Profile: http://www.thecodecage.com/forumz/member.php?userid=333
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=99416


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default outlook task recipient


hi Atishoo,

Sorry, I hadn't read your OP properly & thought you were sending an
email rather than a Task. Unfortunately, Help files aren't installed on
the comuter I'm working on & so I can't easily investigate & test but
hopefully the below links may contain the answer for you to discover:

http://www.*****-clicks.com/excel/olTask.htm
'TaskRequestItem Object'
(http://msdn.microsoft.com/en-us/library/aa211086.aspx)
'Create MS Outlook task object by Excel macro - Excel Help Forum'
(http://tinyurl.com/q9ruea)
'Excel: Sending Outlook tasks via VBA, excel vba, windows xp sp2'
(http://en.allexperts.com/q/Excel-105...-tasks-via.htm)
'Programatically Assign Outlook Task - Page 2'
(http://www.pcreview.co.uk/forums/thread-1838996-2.php)
Post 9 of:
http://www.access-programmers.co.uk/...ad.php?t=79767
'ACC2000: How to Use Automation to Add a Task or a Reminder to
Microsoft Outlook'
(http://support.microsoft.com/default...b;en-us;209932)


These were all sourced from: '.CreateItem(olTaskItem) excel sub outlook
recipient - Google Search' (http://tinyurl.com/pez79b)

hth
Rob


--
broro183

Rob Brockett. Always learning & the best way to learn is to
experience...
------------------------------------------------------------------------
broro183's Profile: http://www.thecodecage.com/forumz/member.php?userid=333
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=99416

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 267
Default outlook task recipient

Thankyou for your links have got it as follows thankyou.
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olTaskItem)
myItem.Assign
Set myDelegate = myItem.Recipients.Add("Jeff Smith")
myItem.Subject = "Prepare Agenda For Meeting"
myItem.DueDate = #9/20/97#
myItem.Send


"broro183" wrote:


hi Atishoo,

Sorry, I hadn't read your OP properly & thought you were sending an
email rather than a Task. Unfortunately, Help files aren't installed on
the comuter I'm working on & so I can't easily investigate & test but
hopefully the below links may contain the answer for you to discover:

http://www.*****-clicks.com/excel/olTask.htm
'TaskRequestItem Object'
(http://msdn.microsoft.com/en-us/library/aa211086.aspx)
'Create MS Outlook task object by Excel macro - Excel Help Forum'
(http://tinyurl.com/q9ruea)
'Excel: Sending Outlook tasks via VBA, excel vba, windows xp sp2'
(http://en.allexperts.com/q/Excel-105...-tasks-via.htm)
'Programatically Assign Outlook Task - Page 2'
(http://www.pcreview.co.uk/forums/thread-1838996-2.php)
Post 9 of:
http://www.access-programmers.co.uk/...ad.php?t=79767
'ACC2000: How to Use Automation to Add a Task or a Reminder to
Microsoft Outlook'
(http://support.microsoft.com/default...b;en-us;209932)


These were all sourced from: '.CreateItem(olTaskItem) excel sub outlook
recipient - Google Search' (http://tinyurl.com/pez79b)

hth
Rob


--
broro183

Rob Brockett. Always learning & the best way to learn is to
experience...
------------------------------------------------------------------------
broro183's Profile: http://www.thecodecage.com/forumz/member.php?userid=333
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=99416




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default outlook task recipient


Brilliant, I'm pleased you solved it. Thanks for the feedback & posting
your findings for others to use :-)

Rob


--
broro183

Rob Brockett. Always learning & the best way to learn is to
experience...
------------------------------------------------------------------------
broro183's Profile: http://www.thecodecage.com/forumz/member.php?userid=333
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=99416

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default outlook task recipient


Brilliant, I'm pleased you solved it. Thanks for the feedback & posting
your findings for others to use :-)

Rob


--
broro183

Rob Brockett. Always learning & the best way to learn is to
experience...
------------------------------------------------------------------------
broro183's Profile: http://www.thecodecage.com/forumz/member.php?userid=333
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=99416

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
Pull Recipient from Outlook Address book BigPig Excel Programming 9 May 26th 09 06:34 AM
outlook task Atishoo Excel Programming 6 May 20th 09 04:47 PM
Create an Outlook Task Steven Excel Programming 5 September 10th 08 05:59 PM
Creating a task in outlook Pasty Excel Programming 0 March 23rd 07 02:07 PM
how to make OUTLOOK EXPRESS mail recipient in excel mihir shah Excel Discussion (Misc queries) 1 November 6th 05 02:10 PM


All times are GMT +1. The time now is 05:47 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"