aspiringnerd
New Member
- Joined
- Apr 22, 2022
- Messages
- 39
- Office Version
- 365
- Platform
- Windows
I'm not sure of the syntax, but I have a cell selected. I want to use information in other cells of the same row to create an outlook event, see below:
VBA Code:
sub new event()
Dim ol as Outlook.Application
Dik olAp as Outlook.AppointmentItem
Set ol as New Outlook.Application
Set olAp = ok Create item(olAppointmentItem)
With olAp
.subject = (current selected row, 5th column) 'this is the line I'm not sure of
.start = (current selected row, 6th column) 'and this one
.end = (current selected row, 7th column) 'and this one
.display
End with
End sub