LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Creating Outlook Task from Excel

Building on this same principle... I would like to copy and paste a selection
of visible cells (meaning some columns could be hidden) into the Body of a
task. I would also like to keep the MS Office Excel Worksheet format. I have
the following code:

Sub ScheduleTask()
Dim OLF As Outlook.MAPIFolder
Dim olTaskItem As Outlook.TaskItem

Set OLF = GetObject("", "Outlook.Application").GetNamespace
"MAPI").GetDefaultFolder(olFolderTasks)
Set olTaskItem = OLF.Items.Add ' creates a new task
With olTaskItem
.Subject = ActiveCell.EntireRow.Cells(1, 1).Value
.DueDate = #2/1/2008#
.ReminderTime = #1/21/2008 1:00:00 PM#
.ReminderSet = True
.Body = ???

.Save
End With
Set olTaskItem = Nothing
Set OLF = Nothing

End Sub

 
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
Creating an Outlook Task Item John Google Excel Discussion (Misc queries) 3 November 6th 07 07:58 PM
Searching for an Outlook Task from Excel scott56hannah Excel Programming 6 October 10th 07 01:05 PM
Creating a task in Outlook from a date in Excel Jamie@Wildcard Excel Discussion (Misc queries) 3 July 3rd 07 04:54 PM
Sending task to Outlook from Excel [email protected] Excel Programming 0 April 23rd 07 11:09 AM
Creating a task in outlook Pasty Excel Programming 0 March 23rd 07 02:07 PM


All times are GMT +1. The time now is 05:47 PM.

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"