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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,430
Messages
6,124,847
Members
449,194
Latest member
HellScout

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