L
Lacassagn
Hi,
How to get an user event in the outlook explorer back into a vb6 form
VB6 gives this code but I can't get it, would you have something else ?
Dim myolapp As New Outlook.Application
Dim WithEvents myFolders As Outlook.Folders
Sub Initialize_handler()
Set myNS = myolapp.GetNamespace("MAPI")
Set myFolders = myNS.GetDefaultFolder(olFolderDeletedItems).Folders
End Sub
Private Sub myFolders_FolderChange(ByVal Folder As Outlook.MAPIFolder)
Dim name as string
name = Folder.name
End Sub
Thanks
How to get an user event in the outlook explorer back into a vb6 form
VB6 gives this code but I can't get it, would you have something else ?
Dim myolapp As New Outlook.Application
Dim WithEvents myFolders As Outlook.Folders
Sub Initialize_handler()
Set myNS = myolapp.GetNamespace("MAPI")
Set myFolders = myNS.GetDefaultFolder(olFolderDeletedItems).Folders
End Sub
Private Sub myFolders_FolderChange(ByVal Folder As Outlook.MAPIFolder)
Dim name as string
name = Folder.name
End Sub
Thanks