Results 1 to 4 of 4

Thread: Server rules in outlook

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    2

    Server rules in outlook

    hi,

    i have a simple problem. I have a rule running which puts incoming mails to a specific folder. This is running on the server, so the mail appears in the specific folder in my client.

    I want notifications, such as the envelope in the notification area. I can get this done but have to run the rule on the client.

    Is there any way I can setup a rule, client or server, which notifies me of new mails in the specific folders, other than inbox.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Server rules in outlook

    Welcome to the Forums.

    Moved to General PC


    Are you wanting to write VBA code or just write a rule using the wizard to do this?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    2

    Re: Server rules in outlook

    anything that solves my problem.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Server rules in outlook

    I use VBA code instead of Rules. It gives me more control but it means that its only for the particulat machine.

    Make sure you enable macros to run usually by setting macros to medium and choosing enable when you restart Outlook. Then press Alt+F11 to open the Outlook VBA IDE. Then paste this code in and make the only change to your folder location.

    Note: If your folder is a subfolder then you need to drill down the folder path to its final location. You can not go ".Folders("Test1\Test2\Test3").Items"


    VB Code:
    1. Option Explicit
    2. ''Behind ThisOutlookSession
    3. Private WithEvents oMyFolder As Outlook.Items
    4.  
    5. Private Sub Application_MAPILogonComplete()
    6.     Set oMyFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Folders("Test").Items
    7. End Sub
    8.  
    9. Private Sub oMyFolder_ItemAdd(ByVal Item As Object)
    10.     MsgBox "New message:" & vbNewLine & Item.Subject, vbOKOnly + vbInformation, "New item added to your MyFolder folder!"
    11. End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

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



Click Here to Expand Forum to Full Width