Hi All,
I am display a mail with some content in the body from my VBA application. Is there any way to disable the Send option on the mail.
Thanks in advance.
Ravikiran.
Hi All,
I am display a mail with some content in the body from my VBA application. Is there any way to disable the Send option on the mail.
Thanks in advance.
Ravikiran.
Hi and welcome to VBAX
You can get the "Inspector" (window) associated with the mail item and then find the commandbar and control you want to disable[VBA]Dim m As MailItem
Dim myInspector As Inspector
Set m = CreateItem(olMailItem)
m.Body = "some text"
m.Display
Set myInspector = m.GetInspector
myInspector.CommandBars("Standard").Controls("Send").Enabled = False
End Sub[/VBA]
K :-)