PDA

View Full Version : Disable Send Option on new mail



ravikiran
06-06-2006, 06:31 AM
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.

Killian
06-06-2006, 08:09 AM
Hi and welcome to VBAX :hi:

You can get the "Inspector" (window) associated with the mail item and then find the commandbar and control you want to disableDim 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