Transfert calendrier Outlook vers Google Agenda

cs_Col Messages postés 25 Date d'inscription mercredi 23 juin 2004 Statut Membre Dernière intervention 13 octobre 2009 - 31 oct. 2007 à 09:42
cs_zefire Messages postés 1 Date d'inscription vendredi 23 décembre 2005 Statut Membre Dernière intervention 24 juillet 2009 - 24 juil. 2009 à 00:01
Bonjour,

Je souhaite réaliser un module en VBA sur Excel destiné à transférer le calendrier Outlook vers Google Agenda.

le problème : je ne parviens pas à récupérer les RdV périodiques.

Je pense que le "IncludeRecurrences = True" devrait me permettre d'y arriver mais impossible de le paramétrer correctement. Où et comment le placer dans la procédure ?

Voici le code :

Sub export2()
   Dim dirLocation As String
   Dim calendar As Outlook.MAPIFolder
    Dim objApplication As Outlook.Application
    Dim objNameSpace As Outlook.NameSpace
    Dim objAppointments As Outlook.MAPIFolder
    Dim objAppointment As Outlook.AppointmentItem
    Dim appointmentIndex As Integer
    Set objApplication = CreateObject("Outlook.Application")
    Set objNameSpace = objApplication.GetNamespace("MAPI")
    Set objAppointments = objNameSpace.GetDefaultFolder(olFolderCalendar)
     dirLocation = "P:\CALtest.csv"
     
    Open dirLocation For Output As #6
    titre = """Objet"",""Début"",""Début"",""Fin"",""Fin"""
    Print #6, """Objet"",""Début"",""Début"",""Fin"",""Fin"""
    For appointmentIndex = 1 To objAppointments.Items.Count
   
    Set objAppointment = objAppointments.Items.Item(appointmentIndex)
     Print #6, """" & objAppointment.Subject & """,""" & Format(objAppointment.Start, "d/m/yyyy") & """,""" & _
     Format(objAppointment.Start, "hh:mm:ss") & """,""" & Format(objAppointment.Start, "d/m/yyyy") & """,""" & _
     Format(objAppointment.Start, "hh:mm:ss") & """"
    Next
   
    Close #6
   
End Sub

Col.

2 réponses

cs_Col Messages postés 25 Date d'inscription mercredi 23 juin 2004 Statut Membre Dernière intervention 13 octobre 2009
6 nov. 2007 à 11:28
Alors, personne ?
0
cs_zefire Messages postés 1 Date d'inscription vendredi 23 décembre 2005 Statut Membre Dernière intervention 24 juillet 2009
24 juil. 2009 à 00:01
Bonjour,

je recherche a faire aussi cette fonction via XLS à tu trouver la solution depuis 2007 ?

aymeric.bricard@zefire.fr

merci pour ta reponse

Zefire
0
Rejoignez-nous