• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA code still works manually but button linked to code stopped working suddenly?

zohaib

Member
Hello,

The code below does what it is suppose to when ran manually from the Menu. developer> Marco > SecureMail1.

The code does not work if I click on a button that is linked to this code. Fyi, this used to work but suddenly stopped working.

Code:
Sub SecureMail1()
Dim objMsg As Outlook.MailItem
Set objMsg = Outlook.ActiveInspector.CurrentItem
objMsg.Subject = "*securemail* " & objMsg.Subject
End Sub

Thanks,
Zohaib
 
Hello vletm,

Ok here is a twist. If I open a new message in outlook and use the button is works but when I am in excel and I go to file> share> email than that same button does not work? fyi, I was able to use this button before when I use using file> share > email. I went to outlook than disabled add-in and found this "mssphtb.dll" and enable it but it still doesn't work plus this "mssphtb.dll" files keeps popping up in disabled addin.

thanks,
Zohaib
 
My totally restart means power off for few minutes and test again.
Maybe, tomorrow it will work...
 
Back
Top