Hello everyone! I am having two problems with outlook (precisely a shared mailbox) that I am trying to solve and so far have been unsuccessful. Maybe your expertise will come in handy. At the office we are using a SHARED mailbox as well as several excel based vba scripts to gather statistics. One statistic that we collect is mean time to reply, calculated as the difference between time replied to an email (accessed through propert accessor) and creation time. The problem here is that if a user opens an email and saves it, outlook will automatically mark it as replied, which can later lead to a disaster. My solution to this problem was to write a write event handler ( see below for a snippet)
but it fires even when you send an email, even two times, so it's super annoying. How else can I solve the problem? The second thing is that when we reply to an email the from field defaults to the from email address. I also tried to fix that but none of the below works...
Any ideas if it can be changed to a different email address> rEGARDS, Rob
Code:
Private Sub m_objMail_Write(Cancel As Boolean) Reply = MsgBox("wanna save?", vbYesNo) If Reply = vbNo Then Cancel = True End If End Sub
Code:
Private Sub m_objMail_Reply(ByVal Response As Object, Cancel As Boolean) With m_objMail '.SendUsingAccount = "test@gmail.com" '.SentOnBehalfOfName = "test@gmail.com" .Sender.Address = "test@gmail.com" End With End Sub