Advanced search complete event not firing in VBA

前端 未结 2 655
深忆病人
深忆病人 2021-01-27 18:41

As the title suggests I cannot get the advanced search complete event to fire. I am running VBA through Excel 2013. I have a sub running in worksheet1 which creates a test objec

2条回答
  •  星月不相逢
    2021-01-27 18:56

    To allow raising events you need to declare your objects with WithEvents

    Dim WithEvents myOlApp As New Outlook.Application
    

提交回复
热议问题