Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Alarmbloke
 
Posts: n/a
Default Automatically create outlook appointment

Hi,

I currently have a macro which automatically creates an outlook appointment
based on excel data.

Sub CreateAppointment()


Dim objOL As Object
Dim objItem As Object
Dim lngRow As Long


Set objOL = CreateObject("Outlook.Application")
Set objItem = objOL.CreateItem(1)

With objItem
..Start = Range("B5").Value
..End = Range("B6").Value
..Subject = Range("B3").Value & " " & Range("B2").Value & " for " &
Range("B8").Value & "(" & Range("B7").Value & ")" & " " & " Postcode " &
Range("B13").Value
..Location = Range("B9").Value & ", " & Range("B10").Value & ", " &
Range("B11").Value & ", " & Range("B12").Value & ", " & Range("B13").Value
..Body = Range("B23").Value & ", Alarm Company is " & Range("B16").Value & "
on " & Range("B22").Value & vbNewLine & "Site details are, " & vbNewLine &
Range("B9").Value & ", " & vbNewLine & Range("B10").Value & "," & vbNewLine &
Range("B11").Value & "," & vbNewLine & Range("B12").Value & ", " &
Range("B13").Value & "," & vbNewLine & "Telephone " & Range("B14").Value
..ReminderMinutesBeforeStart = (180)
..ReminderSet = True
..Save
End With

End Sub

Can any one help with a full list of fields

ie .Reminder Set, .Location, .Start etc etc etc

Many thanks.

Matt
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
Create a print macro that would automatically select print area? wastedwings Excel Worksheet Functions 7 August 22nd 05 10:36 PM
Can't create dynamic charts Brian Sells Charts and Charting in Excel 7 March 22nd 05 04:23 AM
Template in Excel prettytwin1 New Users to Excel 1 March 9th 05 09:22 PM
Why does Excel automatically create a temporary Word archive file. Perplexed Excel Discussion (Misc queries) 3 March 1st 05 06:26 PM
Accessing Outlook from Excel Chaplain Doug Excel Discussion (Misc queries) 0 December 19th 04 11:39 PM


All times are GMT +1. The time now is 01:07 AM.

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

About Us

"It's about Microsoft Excel"