+ Reply to Thread
Results 1 to 6 of 6

Code is not getting Categories from selected incoming Meeting notice

  1. #1
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Code is not getting Categories from selected incoming Meeting notice

    I am using the following code to assign a category to the selected meeting item that has been received in my Inbox. After this operation the Categories property has been updated, but when I go back to the Inbox that item does not show any change to its category; it is still blank.

    How can I get my item category updated? Why does the code show the correct category but the actual item does not? The code is certainly updating something but I can't figure out what.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Code is not getting Categories from selected incoming Meeting notice

    Hi Jeff,

    I don't use Outlook, but the code in the following example seems functionally identical to your code: http://www.slipstick.com/outlook/cal...ategories-vba/

    The only difference seems to be that instead of dimensioning the items as 'MeetingItem', etc. each item is dimensioned as a generic 'Object'.

    Lewis

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: Code is not getting Categories from selected incoming Meeting notice

    Thanks Lewis. Changing the declarations does not change the behavior.

    To add more information: I added code to accept the invitation. When the invitation is accepted, the code will post the item to my calendar and it does have the desired category. However, the item that is still in my Inbox does not have the category set.

    With the user interface, you can select the category and accept without even opening the item, then when you accept the item is posted to your calendar and deleted from your Inbox (it can be then found in the Deleted folder). I am trying to reproduce that sequence using code.

    I'm almost there, just need to figure out how to delete the item from my Inbox. Using .Delete deletes it from the calendar but not the Inbox.

    Latest code:
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Code is not getting Categories from selected incoming Meeting notice

    The following link has Sub 'ProcessInBox()' which may help: http://huguesjohnson.com/programming...ointments.html

    There is no Inbox.Delete used in the Sub, but the way the Inbox is processed in the link might be useful.

  5. #5
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: Code is not getting Categories from selected incoming Meeting notice

    Delete from the Inbox not the Calendar.

    Please Login or Register  to view this content.
    To mark "Solved" go to Thread Tools.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: Code is not getting Categories from selected incoming Meeting notice

    Thanks to all for your input.

    This is what I ended up with, and it works fine. Sets category, posts to calendar, sends response to sender, and deletes from Inbox.
    Please Login or Register  to view this content.
    There is probably a bug here if it is called when the selected item is not a meeting item. I'll have to put in a check for that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-14-2014, 07:42 AM
  2. I am very new to VBA but need some VBA code to send a meeting request
    By angusmcdw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2014, 12:53 PM
  3. Use VBA to Add a List in the middle of an open Meeting notice
    By greggpetersen75 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 09-16-2013, 11:10 AM
  4. Replies: 1
    Last Post: 05-15-2013, 06:55 AM
  5. Meeting two conditions before proceeding with code
    By Nu2Java in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2012, 10:10 AM
  6. Code to automatically enble/disable security notice for macro?
    By bigkahuna2187 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 06:23 PM
  7. Vb code for meeting arrangement
    By sem in forum Excel General
    Replies: 18
    Last Post: 07-08-2011, 09:55 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1