Consulting

Results 1 to 2 of 2

Thread: Disable Send Option on new mail

  1. #1

    Cool Disable Send Option on new mail

    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.

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    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 :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •