N
NewBike
Hi again -
I am trying to write a macro that when a button is clicked on a spreadsheet,
it will use the data entered on the new row to create an appointment in
Outlook...
The area that I am experiencing difficulty in is the appointment time,
duration and body text.
Here is my code:
Sub SetAppt()
Dim olApp As Outlook.Application
Dim Appt As Outlook.AppointmentItem
Set olApp = CreateObject("Outlook.Application")
Set Appt = olApp.CreateItem(olAppointmentItem)
With Appt
.Start = Range("L7").Value
.End = Range("L7").Value
.Subject = Range("I7").Value & Range("a7").Value & Range("d7").Value
.Body = Range("e7").Value
.ReminderSet = False
End With
Set Appt = Nothing
Set olApp = Nothing
End Sub
Any help is appreciated.
I am trying to write a macro that when a button is clicked on a spreadsheet,
it will use the data entered on the new row to create an appointment in
Outlook...
The area that I am experiencing difficulty in is the appointment time,
duration and body text.
Here is my code:
Sub SetAppt()
Dim olApp As Outlook.Application
Dim Appt As Outlook.AppointmentItem
Set olApp = CreateObject("Outlook.Application")
Set Appt = olApp.CreateItem(olAppointmentItem)
With Appt
.Start = Range("L7").Value
.End = Range("L7").Value
.Subject = Range("I7").Value & Range("a7").Value & Range("d7").Value
.Body = Range("e7").Value
.ReminderSet = False
End With
Set Appt = Nothing
Set olApp = Nothing
End Sub
Any help is appreciated.