VBA to make appointment reoccurring

Grizlore

Active Member
Joined
Aug 22, 2006
Messages
259
Hi all

The code below is to create a meeting/appointment from a Userform and then email the details via Outlook

Everything works fine, however I can't find how to make the meeting reoccurring (or examples of)

Could anyone give me a pointer please?

Thanks


Code:
Private Sub CommandButton5_Click()

Dim objOL   'As Outlook.Application
Dim objAppt 'As Outlook.AppointmentItem
Dim SecurityTeam As String
Dim MeetingDetail As String
Dim site As String
Site = UserForm1.ComboBox1
 Const olAppointmentItem = 1
 Const olMeeting = 1
Team= UserForm1.ComboBox2
 
    Set objOL = CreateObject("Outlook.Application")
    Set objAppt = objOL.CreateItem(olAppointmentItem)
    With objAppt
        .Subject = "My Test Appointment"
        .Start = Now + 1
        .End = DateAdd("n", 5, .Start)
        
.MeetingStatus = olMeeting
 .RequiredAttendees = ""
 .optionalAttendees = ""
.Resources = Team
.Location = "locallllll"
        .display
    End With
    
    Set objAppt = Nothing
    Set objOL = Nothing
End Sub

Any help would be greatly appreciated
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top