Customize new email reminders in Outlook

Source: Internet
Author: User

Because I usually work on remote desktops or virtual machines, I often have new emails or reminder that I cannot detect in time, so I wrote such a VBA, use the motherboard speaker to activate a new email or reminder. For more information about outlook programming, see this article.

 

Option explicitprivate declare function beep lib "Kernel32" (byval dwfreq as long, byval dwduration as long) as long const one_beep = 600 const half_beep = 300 const note_1 = 440 const note_2 = 495 const note_3 = 550 const note_4 = 587 const note_5 = 660 const note_6 = 733 const note_7 = 825 private sub application_newmail () beep note_5, describeep note_3, half_beep beep note_5, half_beep beep note_1 * 2, then * 2end subprivate sub partition (byval item as object) beep note_3, describeep note_3, half_beep note_2, half_beep beep note_3, one_beep * 2end sub

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.