M
Meex
I user Outlook 2002 SP3, and I want to work with the SyncObjects.
I try to catch the _SyncEnd() event, but this didn't work?!
_SyncStart() and -SyncProgress() are working fine.
Here my class object:
Dim myOlApp As New Outlook.Application
Dim WithEvents mySync As Outlook.SyncObject
Sub Start()
Dim objFolder As Outlook.MAPIFolder
Dim myNameSpace As NameSpace
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set mySync = myNameSpace.SyncObjects.Item(1)
mySync.Start
End Sub
Private Sub mySync_SyncStart()
Debug.Print "Start"
End Sub
Private Sub mySync_SyncEnd()
Debug.Print "Ende"
End Sub
I use this class in a module:
Sub SyncCalendar()
Dim synchObject As New clSync
synchObject.Start
End Sub
regards
Meex
I try to catch the _SyncEnd() event, but this didn't work?!
_SyncStart() and -SyncProgress() are working fine.
Here my class object:
Dim myOlApp As New Outlook.Application
Dim WithEvents mySync As Outlook.SyncObject
Sub Start()
Dim objFolder As Outlook.MAPIFolder
Dim myNameSpace As NameSpace
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set mySync = myNameSpace.SyncObjects.Item(1)
mySync.Start
End Sub
Private Sub mySync_SyncStart()
Debug.Print "Start"
End Sub
Private Sub mySync_SyncEnd()
Debug.Print "Ende"
End Sub
I use this class in a module:
Sub SyncCalendar()
Dim synchObject As New clSync
synchObject.Start
End Sub
regards
Meex