Consulting

Results 1 to 10 of 10

Thread: Automation of email classification selection

  1. #1
    VBAX Newbie
    Joined
    Jan 2016
    Location
    Brisbane
    Posts
    3
    Location

    Automation of email classification selection

    Seeking the wisdom of you expert coders.

    As part of a VBA project, emailing of reports is required. This is being achieved fairly simply with an activesheet mailenvelope as below

    ActiveWorkbook.EnvelopeVisible = True
    With ActiveSheet.MailEnvelope
    .Introduction = "Rejected Payments Report"
    .Item.To = Sheets("out").Range("bm370").Value
    .Item.Subject = "Rejected Payments Report [DLM=For-Official-Use-Only]"
    .Item.Send
    End With

    ActiveWorkbook.EnvelopeVisible = False



    However, there is a resultant disruption to the automation as outlook produces a pop-up window asking the user to select a security classification level for the email.

    I attempted to code around this by adding .item.sensitivity.3 to automatically select the third option but this had no impact.

    outlook version as follows

    outlook 2013 15.0.4867.1000 MSO 15.0.4867.1001

    the pop-up appears to be related to an external package and is marked protective markings for outlook - copyright preemptive consulting v2.1.2.2

    I also tried using a basic sendkeys to try and navigate through this but it also didn't work.

    Any ideas would be appreciated.

  2. #2
    VBAX Newbie
    Joined
    Jan 2018
    Posts
    4
    Location
    Hi there, have you got it sorted? If so I would appreciate that you could share.

  3. #3
    Moderator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,192
    Location
    Have you tried:
    Application.DisplayAlerts = False
    Like:
    Application.DisplayAlerts = False   
     ActiveWorkbook.EnvelopeVisible = True
            With ActiveSheet.MailEnvelope
                .Introduction = "Rejected Payments Report"
                .Item.To = Sheets("out").Range("bm370").Value
                .Item.Subject = "Rejected Payments Report [DLM=For-Official-Use-Only]"
                .Item.Send
            End With
        ActiveWorkbook.EnvelopeVisible = False
        Application.DisplayAlerts = True
    Hope this helps
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved

    Excel 365, Version 2403, Build 17425.20146

  4. #4
    This issue appears to relate to an Australian third party product aimed at government use. I suspect it will not be possible to program around the pop up, as that would rather defeat the object of it.
    You could ask the software company - https://www.preemptive.com.au/support/ - that produced the product.
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  5. #5
    VBAX Newbie
    Joined
    Jan 2018
    Posts
    4
    Location
    Thanks, guys. I did try Application.DisplayAlerts = False but it wouldn't work.

    you are right - it is a third party add-in so probably cannot be overwritten by VBA code. The firm is called Boldon James though.

    Unfortunately, I do not have the delegation to contact them directly, so will have to seek other ways.

  6. #6
    I based my comments on the statement
    the pop-up appears to be related to an external package and is marked protective markings for outlook - copyright preemptive consulting v2.1.2.2
    which pointed to the involvement of https://www.preemptive.com.au I guess Boldon James (who seem to be in the same line of business) were using Preemptive's software as a basis for theirs. I wonder if they know?
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  7. #7
    VBAX Newbie
    Joined
    Jan 2018
    Posts
    4
    Location
    hi gmayor, thanks for your suggestion, however i think i will stop here as most of the coding has been completed

    thank you both for your advice

  8. #8
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    Please mark your thread as Solved (Thread Tools at the top of the page).

    Cheers
    Semper in excretia sumus; solum profundum variat.

  9. #9
    VBAX Newbie
    Joined
    Jan 2018
    Posts
    4
    Location
    I cannot mark Solved as I am not the creator of the post - sorry

  10. #10
    VBAX Master paulked's Avatar
    Joined
    Apr 2006
    Posts
    1,007
    Location
    AhHa!, I wonder what happened to the OP?
    Semper in excretia sumus; solum profundum variat.

Posting Permissions

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