|
-
Sep 19th, 2005, 10:34 PM
#1
Thread Starter
New Member
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.
-
Sep 19th, 2005, 10:42 PM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Sep 20th, 2005, 12:36 AM
#3
Thread Starter
New Member
Re: Server rules in outlook
anything that solves my problem.
-
Sep 20th, 2005, 10:35 AM
#4
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:
Option Explicit
''Behind ThisOutlookSession
Private WithEvents oMyFolder As Outlook.Items
Private Sub Application_MAPILogonComplete()
Set oMyFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Folders("Test").Items
End Sub
Private Sub oMyFolder_ItemAdd(ByVal Item As Object)
MsgBox "New message:" & vbNewLine & Item.Subject, vbOKOnly + vbInformation, "New item added to your MyFolder folder!"
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|