New email notification on shared mailbox

Status
Not open for further replies.

AdrianPL

New Member
Outlook version
Outlook on the web
Email Account
POP3
Hello,
I have a question about new email notification in outlook when I use also shared mailbox, as it doesn't work. I see only notifications from my first mailbox and not from the shared one. I know that there are two ways of solving this issue, I can make a rules or do this by macro. I cannot make rules on shared mailbox as I am not administrator so I have to choose a second option. I would like to add macro which show me notification when new email came into shared mailbox. I found such code in internet:

Private WithEvents Items As Outlook.Items

Private Sub Application_Startup()
Dim Ns As Outlook.NameSpace
Set Ns = Application.GetNamespace("MAPI")
Set Items = GetFolderPath("Accounting\Inbox").Items
End Sub
Private Sub Items_ItemAdd(ByVal Item As Object)
On Error Resume Next

MsgBox "new message from " & Item.SenderName & " in shared folder"

End Sub

As I am not skilled in macros at all its to less information for me.
I am using Office 365 and I see 3 tabs in VB in Outlook

Project1
- Microsoft Outlook Objects
>ThisOutlookSession
-Modules
>Module1
-Class Modules
>Class1

I read that to run this macro I should put provided code in ThisOutlookSession.

Q1: Is does mean that I should remove rest of the tabs?

Q2: Should this macro be on my macros list?

Its only possible when I add :
Sub macro()
End Sub
somewhere ( when my macro is called macro )
Please advice should it be added somewhere in code? And on which tab exactly?

Q3: Could someone provide me code when my shared mailbox is calling XYZ, so I will know exactly which part I should update?

Thank you very much in advance.

Kind regards
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
M Email notification on creation of an appointment shared calendar? Outlook VBA and Custom Forms 3
N Using email notification to update calendar events? Outlook VBA and Custom Forms 4
R Notification/alert when an email has been sat in inbox for a set period of time Using Outlook 1
K How to make email notification in Outlook 2013? Using Outlook 1
C [outlook-users] email notification Using Outlook 7
B outlook 2010 - email sound notification Using Outlook 3
F Email notification if notification email fails Using Outlook 1
D How Can I Receive Email Notification On Multiply Accounts in Outlook.docx Using Outlook 2
B Outlook 2007 New email notification works intermittently after adding Exchange 2010 Servers Exchange Server Administration 1
R Need better notification of email receive errors Using Outlook 2
N Trying to get second email account to give notification in Outlook Using Outlook 7
A New email notification - desktop alert and system tray icon NOT WORKING. Using Outlook 3
W Send notification of new message email to external mail. Using Outlook 1
B New mail notification envelope appears and stays when there is no new email. Using Outlook 1
A outlook 2010 - junk email filter not working, no new email notification Using Outlook 8
E No email notification in Outlook 2010 Using Outlook 2
D email notification Using Outlook 3
B Outlook you replied to notification and iPhone sent email Using Outlook 3
B automate email message on Outlook Calendar notification alerts? Outlook VBA and Custom Forms 1
A Notification for Multiple Email Accounts Outlook VBA and Custom Forms 3
R Outlook 2010 How do you export 2 email Accounts' 2010 Inbox Files to new computer (2019)? Using Outlook 0
R Auto display of new email does not work on non-default account Outlook VBA and Custom Forms 0
J Automatically forward email and apply template Outlook VBA and Custom Forms 0
L Outlook saved email templates Using Outlook 1
B VBA to convert email to task, insert text of email in task notes, and attach copy of original email Outlook VBA and Custom Forms 4
T How can you include Junk Email in Search Results like you can include Deleted Items? Using Outlook 3
B Extracting email addresses from a folder - how to also get the name of the person the address is for? Using Outlook 5
W Replyin to the reply-to email address Outlook VBA and Custom Forms 0
E How to display "Change Folder" in Change Default Email Delivery Location in Exchange Outlook 2016 Using Outlook 1
M Extract all links from Outlook email, send to Excel Using Outlook 2
O Forward a email with modified body Automatically. Outlook VBA and Custom Forms 0
B Outlook 2003 email sending & receiving suddenly stopped working Using Outlook 3
R List folders in a combo box + select folder + move emails from inbox to that folder + reply to that email Outlook VBA and Custom Forms 1
O Email not leaving Outbox when using Excel VBA to sync Outlook account Outlook VBA and Custom Forms 4
T The non-email functions Using Outlook 8
P Outlook 2013 Word Share doc as Email Attachment now brings up Eudora. Using Outlook 1
C How to rename subject line and forward the email Outlook VBA and Custom Forms 2
R Help Revising VBA macro to delete email over different time span Outlook VBA and Custom Forms 0
J Sent Items Folder NOT Showing Correct From Email Address Using Outlook 0
J Outlook Reply > From > Other Email Address... > Address Not Showing in Sent Items... From Email Outlook VBA and Custom Forms 0
T Column to display which email alias a message was sent to Outlook VBA and Custom Forms 6
Marc2019 Need help please! Cannot Setup my outlook email account on my Mac Outlook 2011 Using Outlook.com accounts in Outlook 2
HarvMan Hotmail - Sending email is undeliverable Using Outlook 4
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
H In outlook 365 POP mail Inbox, email takes a long time or never arrives. Using Outlook 1
D Can Exchange Admin Center create a pst for users email/contacts/calendar? Exchange Server Administration 0
T After I send a new email, it remains in the Draft folder Using Outlook.com accounts in Outlook 3
P OWA Settings->Calendar->Events from Email; Setting changes do not hold Using Outlook 1
S How to export urls from email to excel and check the status of the url ? New Slipstick.com Articles 6
P Auto Insert Current Date or Time into Email Subject Outlook VBA and Custom Forms 2
Similar threads


















































Top