I am trying to code a pop up when the user deletes "Pending" Column M. I have searched for samples where; entry was deleted & the message had Yes/No response. I have a previous message saying "Two appointments were scheduled on your calendar previously. The first appointment was a reminder to send a contact letter. The second appointment was a reminder to cancel the consult. I would like to combine those lines & Click Yes to delete the previous entry, if veteran contacted you. Click No, if there was no contact from the veteran."
What I would like to happen is 1 of 2 actions. Action 1) the user selects Yes & a message pops up saying "Delete the future appointments on your calendar for this veteran." and then this piece of code runs:
Action 2) The user selects No & entry is deleted & the user is prompted to enter the reason in column L range L3:L329. "You can choose from the drop down list or enter a new one."
I already have an If Not Intersect(Target...." line so I can't use that, & this piece of code when Pending originally entered:
I appreciate any help. I have not seen anything like I mentioned. I assume that it is possible, am I correct?
What I would like to happen is 1 of 2 actions. Action 1) the user selects Yes & a message pops up saying "Delete the future appointments on your calendar for this veteran." and then this piece of code runs:
Code:
'Opens Outlook appointment Calendar.Dim olApp As Object ' Outlook.Application
Set olApp = CreateObject("Outlook.Application")
olApp.Session.GetDefaultFolder(olFolderCalendar).Display
Action 2) The user selects No & entry is deleted & the user is prompted to enter the reason in column L range L3:L329. "You can choose from the drop down list or enter a new one."
I already have an If Not Intersect(Target...." line so I can't use that, & this piece of code when Pending originally entered:
Code:
Dim KeyCells As Range
Set KeyCells = Range("M3:M329")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
Last edited: