I'm new to VBA in Outlook, but have created this little script that pops up a confirmation box that asks if the user have remembered to choose the right "Send from" address.
However I'd like to have it do that - only - if a particular send from address has been selected - how can I do that?
Here's the script so far:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim intRes As Integer
Dim strMsg As String
strMsg = "Har du husket den rigtige ""From"" adresse? "
intRes = MsgBox(strMsg, vbYesNo + vbDefaultButton1, "HUSK! ")
If intRes = vbNo Then
Cancel = True