Outlook 2013 VBA Event for recurring appointments

Hello,
I have VBA code that copies new Calendar entries to a secondary calendar. For recurring meetings it only copies the 1st meeting to the secondary calendar. Is there an Outlook VBA event that occurs whenever a Recurring appointment is created and/or edited?
I have done some searching on the Internet but haven't found any answers.
Adrian Hernandez

Hello Adrian,
The Outlook object model doesn't provide such events. Instead, make sure that the RecurrencePattern object is set properly on the copied appointment item. The
GetRecurrencePattern method of the AppointmentItem class returns a RecurrencePattern object
that represents the recurrence attributes of an appointment. If there is no existing recurrence pattern, a new empty RecurrencePattern object is returned.
The IsRecurring property of the AppointmentItem class is based on
the GetRecurrencePattern method.
When the GetRecurrencePattern method
is used with an AppointmentItem object,
this property is set to True.
Be aware, when you work with recurring appointment items, you should release any prior references, obtain new references to the recurring appointment item before you access or modify the item, and release these references as soon as you are finished and
have saved the changes. This practice applies to the recurringAppointmentItem object,
and any Exception or RecurrencePattern object.
To release a reference in Visual Basic for Applications (VBA) or Visual Basic, set that existing object to Nothing. In C#, explicitly release the memory for that object. For a code example, see the topic for the AppointmentItem object.
Note that even after you release your reference and attempt to obtain a new reference, if there is still an active reference, held by another add-in or Outlook, to one of the above objects, your new reference will still point to an out-of-date copy
of the object. Therefore, it is important that you release your references as soon as you are finished with the recurring appointment.

Similar Messages

  • Outlook 2007 Calendar Monitoring: track send event for recurring meetings

    Hi,
    I'm working on an Outlook 2007, VSTO 2010, .NET 3.5 add-in which monitors AppointmentItem objects changed on the user's calendar. Specifically I'm tracking the send event of the currently selected appointment in the calendar view. Currently my add-in is
    set to cancel the send event and call Display() on the selected appointment instead.
    I'm testing with Outlook 2007 SP3. The event handler is fired correctly for non-recurring meetings when the user changes the start or end time of the meeting and for recurring meeting occurrences / exceptions when the user changes the end time, but not when
    the user changes the start time of a recurring meeting occurrence / exception. These are the specific steps:
    Create a recurring appointment with e.g. 3 occurrences, add at least one attendee and send the invitation.
    Set the Calendar to display a Week View.
    Select the top edge of the first occurrence of the appointment created in step 1 and drag it upwards to increase the length of the appointment by half an hour.
    Release the mouse button and press enter to confirm the change.
    Answer 'Save changes and send update' in the popup.
    At this point the addin should cancel the send event and display the appointment, but actually the event handler is not called. This behavior occurs only when I change the start time of an occurrence / exception. When I change the end time the event handler
    is called correctly.
    Do you have any clue why the event handler is only called for the one change and not for the other? How could I work around this issue?

    Hi Eugene,
    Thanks for your reply. Here is my code:
    public class ExplorerMonitor {private Explorer explorer;private AppointmentItem selectedAppointment;
    public ExplorerMonitor()
    this.explorer = Globals.ThisAddIn.Application.ActiveExplorer();
    this.explorer.SelectionChange += new ExplorerEvents_10_SelectionChangeEventHandler(Explorer_SelectionChange);
    private void Explorer_SelectionChange()
    Selection selection = null;
    object selectedItem = null;
    bool eventsHookedUp = false;
    try
    // first remove the listeners from the previously selected item
    this.StopSelectedItemMonitor();
    selection = this.explorer.Selection;
    if (selection.Count == 1)
    selectedItem = selection[1];
    AppointmentItem appointment = selectedItem as AppointmentItem;
    if (appointment != null)
    this.selectedAppointment = appointment;
    ((ItemEvents_10_Event)this.selectedAppointment).Send
    += new ItemEvents_10_SendEventHandler(SelectedAppointment_Send);
    // Stop monitoring when the item is opened in an explorer window.
    this.selectedAppointment.Open
    += new ItemEvents_10_OpenEventHandler(SelectedAppointment_Open);
    eventsHookedUp = true;
    catch (System.Exception exception)
    logger.Error("Caught in Explorer_SelectionChange", exception);
    finally
    if (!eventsHookedUp)
    // only release if we didn't start monitoring it
    ComMarshaler<object>.releaseComObject(ref selectedItem);
    ComMarshaler<Selection>.releaseComObject(ref selection);
    private void SelectedAppointment_Open(ref bool Cancel)
    this.StopSelectedItemMonitor();
    private void SelectedAppointment_Send(ref bool Cancel)
    Cancel = true;
    this.selectedAppointment.Display();
    private void StopSelectedItemMonitor()
    if (this.selectedAppointment != null)
    this.selectedAppointment.Open -= new ItemEvents_10_OpenEventHandler(SelectedAppointment_Open);
    ((ItemEvents_10_Event)this.selectedAppointment).Send
    -= new ItemEvents_10_SendEventHandler(SelectedAppointment_Send);
    ComMarshaler<AppointmentItem>.releaseComObject(ref this.selectedAppointment);
    public static class ComMarshaler<T>
    public static void releaseComObject(ref T anObject)
    if (anObject != null && Marshal.IsComObject(anObject))
    Marshal.ReleaseComObject(anObject);
    anObject = default(T);

  • Outlook 2007 calendar - problems with recurring appointments

    In general sync appears to work. However, when amendments are made to recurring appointments I am seeing two types of problem:
    1) If I DELETE one instance of a recurring appointment in Outlook it is not deleted on the iPad.
    2) If I AMEND one instance of a recurring appointment the revised appointment appears, but so does the original one (eg if the appointment was for 10:00-11:00 and I move it to 14:00-15:00 in Outlook for just one week I end up with appontments at both times on the iPad for that day.
    In summary the iPad seems to have the simplistic view that recurring appointments will happen EVERY time period and doesn't seem to allow for the fact that there may be individual changes.
    Is this a known bug or does this work correctly for other people?
    Nick

    We have this issue at our company as well.  We have Exchange 2010 on the back end, execs with latest-model iDevices (iOS 8.1.2, iPhone 6S, iPad Air, etc.)
    These execs have several monthly and weekly recurring meetings. Sometimes, they will adjust one meeting up or down a half-hour.
    If done on the CEO's iPhone, it does not change his iPad or Outlook. If on his iPad, it doesn't change iPhone or Outlook.
    If done via Outlook, either by him or his executive assistant (delegate editor access to calendar), outlook updates but neither iPhone.
    Our Exchange admins have verified that they see the updates go from Outlook clients to Exchange and out ActiveSync.
    We finally have a SyncDiagnostics profile on the iDevices, but we have to wait for the execs to make meeting changes that don't sync.

  • MAPI over HTTP not working correctly, Outlook 2013 clients prompting for credentials during profile creation or opening depending on security of virtual directory

    ENVIRONMENT
    -1 Exchange 2013 SP1 CU7 server with all roles that is also a hybrid server with Office 365 tenant, mailboxes are all on premise only LYNC online is being utilized right now.
    -Exchange 2013 public folders
    -Mix of Outlook 2013 SP1 and Outlook 2010 SP3 clients all fully update to day as of Feb 2015
    Outlook anywhere is working perfectly across all clients both internally and externally using autodiscover.  Both Outlook 2013 and 2010 clients can open the program and create a profile automatically via autodiscover and no additional logon prompts
    are seen.
    We set the internal and external mapi virtual directory URLs to a valid URL that also matches the Exchange 2013 SSL certificate.  We set the security to ntlm, negotiate on the mapi virtual directory.  We reset IIS and enabled mapi over http in
    the org config.  We run in to problems here.
    Outlook 2010 clients appear to be working fine.  We can create a new profile and open and close Outlook without any logon prompts and verify that MAPIHTTP and Negotiate are used to connect to Exchange.
    Outlook 2013 clients are having problems.  As soon as we try to create a profile it says your administrator has made a change that requires you to restart outlook and then a windows logon prompt appears. If we authenticate Outlook will open and connect.
      This logon prompt should not occur.    We can confirm that it is connecting via MAPI HTTP and Negotiate.
    If we set the mapi virtual directory to NTLM only then a logon prompt also appears during every open of Outlook 2013.  We can confirm that it is trying to connect with MAPIHTTP via NTLM in the outlook connection test screen.
    I do not understand this behavior by Outlook 2013 which was supposed to be designed with MAPI HTTP in mind.  I would think the same issues would occur with Outlook 2010 but they do not.  I am not sure how to resolve this and I am looking for help.

    I have the same problem. Exchange and Outlook are both up to date. After creating a new profile Outlook prompts for username/password. A lot of users also get this prompt while
    working - the profiles have been "migrated" from Exchange server 2010. <o:p></o:p>
    Niko, as i can see in your screenshot you do not have Mapi over HTTP enabled. Why? You can change settings in the security tab – if you have Mapi over
    HTTP enabled all options are grayed out (please correct me if I
    am wrong):
    This is a very annoying thing – does anybody else have the same problem?
    Any suggestions on this?
    Marc

  • Outlook 2013 Constantly Prompting For Credentials - Exchange 2007 - Small Business Server 2008

    Hello, I am having a problem using Windows Small Business Server 2008 and Exchange 2007 with Outlook 2013. The issue is that a credentials box appears in Outlook 2013 when using there exchange account whilst connected to the domain. The box will randomly
    prompt for user credentials, once the user credentials are entered it will either pop back up again and if you enter the details in again it will continue to pop up for around 4 or 5 times before accepting the credentials. It will then pop back up within 15
    minutes and do the same thing, if you click "Cancel" on the box it will also go away and remain connected to exchange however a popup in the bottom right will appear asking for a password even though you can send / receive from the mailbox.
    I have looked into this issue for hours and hours and still can not find a resolution, I have tried re-installing Office 2013 and re-creating the Outlook Profile as-well as as the Windows 7 Profile. I have checked through all the SSL certificates in IIS
    and everything appear to be correct.
    Is this a common issue? Is there anything I can do to further diagnose or fix this issue without having to try to re-install both the server and machine?

    Hi James_wilson,
    Any update?
    Just additional, would you please let me know whether have installed all updates for Outlook 2013? If hasn’t, please install and then monitor the result.
    Please also check if you enable
    Always prompt for logon credentials setting in Outlook 2013. 
    If you enable this setting, please uncheck and check if this issue still persists. Meanwhile, please remove the old credential in
    Credential Manager, then add again. Then monitor the result
    By the way, please run the Exchange BPA on the SBS 2008 server and check if can find some issue.
    Hope this helps.
    Best regards,
    Justin Gu

  • Outlook 2013 ask credential for connecting to Exchange 2007

    Hi,
    i've a big problem into my business from about 2 weeks. We have deployed 5 new pc with Office 2013 Professional and Windows 7 professional, into our server we have exchange 2007 version 8.3 and build 83.6
    Only for 1 client outlook works correctly but into other 4 client we have same problem. After open outlook 2013 is all ok and i see "connected to Microsoft Exchange" but after 2 minutes outlook always asks for password prompt. When i insert the
    password the client request the same password into loop. 
    Despite asks for credential i receive correctly the emails.
    From now i've tried this solution that i read online but none of these works correctly.
    1- delete and create new outlook profile
    2- I have changed the authentication to NTLM instead of Basic Authentication
    3- Delete credential from Control Panel --> Credential Manager
    4- Disable the setting "Always prompt for logon credentials"
    5- try to change user password from owa
    Other information:
    User can access to owa and work correctly, autodiscover is running correctly because i setup the account with it.
    I've tried to test outlook connection with press ctrl and left click into outlook taskbar.
    Why outlook always ask me for credential? This is very frustrating because only 1 client works correcly.
    I'm waiting for your kindly response.
    Matteo

    Hi Matteo,
    What’s your Outlook connection status? Confirm your Protocol is RPC/TCP (internal) or RPC/HTTP (external)? Please try to configure your problematic account in the Outlook client which is the only one working correctly to check whether the issue persists.
    If all other 4 accounts can work well in the “good” one client, please check whether there is any difference between the account settings in different PC.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Outlook 2013 keep asking for password

    Hi,
    We having problem where outlook is keep asking for password every time you start outlook.
    Things I tried
     - I have created new outlook profile - still same problem
     - Clear all passwords from password manager - still same problem
     - Deleted the .OST file - still same problem.
     - Always prompt for logon credentials - this is not tick
     - I have tried this
    http://support.microsoft.com/kb/290684
    Only happening on Office 2013 not office 2007
    One thing I did notices when I was debugging the problem.
    When I removed the office and reinstalled the problem went away for
    whole 1 week but then on Monday it start asking for password again which
    makes be thing that they is something in group policy which is causing
    this.
    We are using
     - Windows 7
     - Office 365 (2013)
     - Our emails are being hosted by Microsoft clod
    I don't know what else to try or check.

    Hi,
    Does this issue happen to all clients or a special one?
    Please first check if Logon network security under More Settings on the Microsoft Exchange
    Security tab is set to a value other than Anonymous Authentication.
    In addition, you may also follow this article to troubleshoot the issue:
    http://blog.quitecloudy.com/2012/06/troubleshooting-office-365-multiple.html
    Please Note: Since the web site is not hosted
    by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Outlook 2013 continually prompting for credentials on new domain

    Greetings,
    I first posted this in the Office365 community forums and was directed here.
    We are experiencing an issue where Outlook 2013 (Office365 install) is prompting for user credentials every time it is opened, despite checking the option to remember the credentials. So far we've tried a number of troubleshooting steps, but nothing
    has resolved the issue. The issue is happening to multiple users on multiple computers.
    We are running:
    Outlook 2013 (32-bit) (Office 365 install)
    Windows 7.1 Professional (x64)
    Computer is domain joined (Server 2012 R2 Domain Controllers)
    Mail is hosted on Office 365
    We've tried:
    Clearing the Outlook and Office credentials from Credential Manager.
    Removing the mail profile and the saved credentials from Credential Manager, then re-adding the mail profile.
    We've tried adding the mail profile with both a manual configuration of the server settings and allowing Outlook to automatically configure them.
    Ensuring that "Always prompt for logon credentials" is unchecked.
    Setting "Always prompt for logon credentials" to disabled via registry (see
    http://support.microsoft.com/kb/2984912)
    Confirming that Autodiscover is able to connect (http://www.microsoft.com/en-us/showcase/details.aspx?uuid=e8db028a-06f4-45fb-aff1-e8ac896d29c5)
    Deleting the Autodiscover.xml file so that it is recreated
    Doing an Online Repair of Office 365.
    Reinstalling Office 365
    Recreating the user's Windows profile.
    Ensuring all applicable Windows updates and Office updates are installed.
    Changing Proxy Authentication from Basic to NTLM (will not connect with NTLM)
    The machines this is occurring on are on a new domain that we are in the process of setting up. The user accounts are still on the old domain. Cross-domain trusts are set up in both directions and all other services are working fine. GPO settings across
    both domains have been set up to be identical. The issue occurs on computers that were built directly on the new domain as well as computers built on old domain and migrated over. Machines that are not domain joined or are still on the old domain are not experiencing
    the issue.
    If any of you could provide any insight or other steps that we could try I'd greatly appreciate it.
    Thanks

    Hi,
    For the issue that Outlook keeps prompting for password, I usually suggest users follow the steps in this article below, but apparently you have tried almost all the steps:
    Why does Outlook keep prompting for password
    I've seen some similar issues that were caused by an old "network driver", which for some reason caused a wrong server name to propagate up from the network layer to the application layer. Updating the network driver would fix the issue, I'm
    not sure if this works in your scenario though.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Outlook 2013 Continually Prompting For Credentials

    After migrating to Office 365 & installing Pro Plus 2013, Outlook 2013 (32-bit) continues to prompt for credentials even though it shows the mailbox as connected to Exchange.
    To stop this prompt, I've done the following:
    Removed Outlook credentials from credential manager
    Removed/recreated Outlook profiles & renamed "outlook" folder found at C:\User\"username"\AppData\Local\Microsoft\ to "Outlook.old" so Outlook will recreate the folder upon restart.
    Checked Security tab of "more settings" of the mailbox to make sure "Always prompt for logon credentials" isn't checked.
    Please someone give me guidance as to what else the issue could be.

    Hello,
    How did you set the Logon network security under More Settings on the Microsoft Exchange
    Security tab? Please make sure it's not set to a value other than
    Anonymous Authentication.
    To verify this, please follow these steps:
    1. Launch Control Panel.
    2. In Control Panel, locate and click
    Mail.
    3. Click Show Profiles, select your Outlook profile, and click
    Properties.
    4. Click E-mail Accounts, select
    Account Settings and on the E-mail tab, click Change.
    5. In the Change Account dialog, click
    More Settings.
    6. In the Microsoft Exchange dialog, select the
    Security tab.
    7. From the Login network security
    dropdown, select Anonymous Authentication and click
    OK.
    8. Click Next and click
    Finish, and then click Close on the Account Settings dialog.
    9. Click Close on the
    Mail Setup dialog, and click OK to close the Mail control panel.
    Please let me know the result.
    Reagrds,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Outlook 2013 repeatedly prompts for password when connecting to Exchange Server 2010

    I am trying to configure Outlook 2013 on a Windows 8.1 Pro client.  The exchange server is 2010 SP1 and works just fine with OL 2010.
    When I configure OL 2013, the configuration prompts for a password for the account repeatedly with both NTLM and Basic Authentication chosen.  OL 2013 tries to connect and then it disconnects with the password for the account repeatedly prompted. When
    the credentials are entered, the prompt reappears immediately.
    Might anyone help?
    Many thanks in advance
    Shuvo

    Hi Shuvo,
    Please check whether this user can access mailbox in OWA. Please manual setup this account in Control Panel to have a try. Make sure your
    Server name and User name are configured correctly. If you are configure the account in internal domain environment, please click
    More Settings, set Negotiate Authentication in
    Security tab and uncheck Connect to Microsoft Exchange using HTTP in Connection tab.
    If there is any updates, please feel free to let us know.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • My Outlook 2013 calendar events will not sync up on my iPad

    I have outlook 2013, the iCloud control center on my PC, an iCloud account and enabled all appropriate settings on my iPad (and iPhone 5c). I am able to see my calendar events in outlook and in my apple calendar on my PC and on my Macbook Pro, but am not able to see any of my OUTLOOK initiated calendar events on my iPhone or iPad. I have attempted to follow instructions about syncing using iTunes (which doesn't seem to really be an option anymore) as well as syncing via iCloud (but there doesn't really seem to be an option to add an account other than my apple account via iCloud accessed over the web).
    Anyone else having the same issue? Anyone have any suggestions?

    This article should provide you with some steps on where to start. http://support.apple.com/kb/HT1692?viewlocale=en_US

  • Outlook 2013 secure list for download picture cannot be activated

    In Outlook 2013 I cannot save E-Mail addresses or Domains in the safe list for downloading Pictures immediately. When I push one of the two Options nothing happens. I can only use the "Download Picture" Option repeatedly for every mail.
    I have just moved my Domain from my Provider into Exchange from Office 365. Since then the safe list is not functional anymore.
    With OWA I can use the safe list, but it will not honored in Outlook on my local PC Installation.
    Johann Baatz BJ-Trading

    Hi,
    Please remove all safe senders in Outlook. And add the Domain or E-mail addresses in the Safe list in OWA, then check whether the picture can be download automatically in OWA and Outlook Online mode respectively.
    If the issue doesn’t happen in OWA and Outlook Online mode, please
    create a new Outlook profile to have a try.
    If the issue doesn’t happen in OWA but occurs in Outlook Online mode, please check if there is any third-party Anti-spam or mail scanning in your local PC. If that is the case, please disable them to check whether the issue persists.
    If the issue persists, start Outlook in safe mode to have a try:
    Start > Run > type Outlook /safe and enter
    Regards,
    Winnie Liang
    TechNet Community Support

  • Adding another exchange account Outlook 2013 Pro Plus for terminal Server users

    Really hoping someone can offer some advice on this one as I have wasted far to many cycles trying to figure this out.
     Company I work for recent purchased another company and we are in the process of bringing them into our network.  They currently run a a 2008 R2 terminal server where all users connect to for there day to day work.  A number of applications
    are installed including Office 2013.
    All users have Outlook 2013 configured to access their exchange server for email and this works fine.
    The first step in bringing them into our fold is to add an email account for Our Exchange  server without removing their existing exchange configuration or Outlook Profile.  So the one profile will have both exchange accounts listed and they can
    continue to get email from their server but as well email from our domain.
    I created a MSP file and tested pushing this out using PDQ Deploy to a few workstations here in our office and it works fine.  I then started to work on deploying in their environment.  PDQ Deploy will not work as they are all terminal Services
    Clients.  So I tried to push out via GPO.  I created the GPO Initially wanting to use a package and apply that GPO to an AD group.  However it will not let me deploy a MST as a package.  So I then tried moving it to a script that would
    run at logon.  That too is not working.
    I know I could enter install mode then run the MSIEXEC.EXE \config.MSP but that takes away the ability to control the role out.
    Any other ideas on how to get this done.

    Using the MSPfile method would require the logged-on user to have the necessary Windows permissions to run setup.exe, and on an RDS/TS Session Host, that's not likely to be available. (since it's not a great idea to give end-users those permissions on a
    shared system like RDS/TS)
    But you might be able to do it with a PRF file and an Outlook launch command, like this?
    http://technet.microsoft.com/en-us/library/cc179062(v=office.15).aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • SBS2008 in combination with Outlook 2013 keeps asking for credentials

    I've got a SBS 2008 server with windows 7 pro clients.
    Some of them use outlook 2010 and some use 2013.
    The users which use the 2013 version has a problem with saving of the credentials.
    Every time they start outlook 2013 they will be asked for credentials and some of them 5 times before it starts.
    The weird thing is: if you click ESC to close the screen that asks for the credentials, outlook still connects to the mailbox.
    Is there someone who can tell me how to fix this problem.

    Hi Willy-Billy,
    Any update? Would you please let me know the current situation of this issue?
    In addition, would you please let me confirm something more?
    Please check if problematic user accounts access mailbox correctly via OWA.
    If you create a new outlook profile for a problematic account, will encounter the same issue?
    As mentioned in the link that Robert provided, please check if you enable
    Always prompt for logon credentials setting in Outlook 2013.
    If you enable this setting, please uncheck and monitor the result.
    Meanwhile, please remove the old credential in
    Credential Manager, then add again. Please check if this issue still persists.
    Please run
    SBS 2008 BPA to collect SBS configuration information and analysis. Then check if you can find some clues.
    Windows SBS Best Practices Analyzer (BPA)
    http://support.microsoft.com/kb/2673284
    Hope this helps.
    Best regards,
    Justin Gu

  • Export 7 months' worth of notes/comments from Outlook 2013 Calendar Events?

    Upon start-up, before we got our CRM suite installed, one of our sales reps was keeping all his call notes and comments in Outlook's Calendar Appointment boxes. Now we want to get those seven months' worth of notes exported from Outlook
    as text so we can import them into our CRM. I can't figure out how to get those 200+ notes exported from Outlook...a little help?

    They are in the calendar notes field? What format do you need them in and did you try File, Open & Export to bring up the export wizard?
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

Maybe you are looking for