当我监听每个商店默认文件夹的 Item_add 事件时,它们永远不会触发。这怎么可能?
'doesnt work:
For Each st As Outlook.Store In Application.Session.Stores
AddHandler st.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail)
.Items.ItemAdd, AddressOf sentmail
AddHandler st.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail) _
.Items.ItemAdd, Function() MsgBox(55)
Next
'works
AddHandler Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail) _
.Items.ItemAdd, AddressOf sentmail