Results 1 to 10 of 10
  1. #1
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    MeetingItem vs. AppointmentItem (OL2kSR1)

    Just to be sure;

    a MeetingItem is a calendar item which resides in the Inbox?
    an AppointmentItem is a calendar item which resides in the Calendar?

    or is there more to the Item difference between these two? (I understand there are Method and Property differences ... I think.)

    TIA
    -John ... I float in liquid gardens
    UTC -7ąDS

  2. #2
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Roanoke area, Virginia, USA
    Posts
    3,729
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    meeting should be the same as calendar, but it's emailed and adds a calendar item to the users calendar when accepted. a copy may remain in the inbox, i don't recall and don't have one in the inbox to check.

  3. #3
    5 Star Lounger
    Join Date
    May 2001
    Location
    Washington, USA
    Posts
    750
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    The answer kind of depends on what you had in mind. But you can't do much with a MeetingItem. If you open one, you see that design this form is not available. It's also not listed in design a form. It's really a "system" message the recipients outlook creates in the in box when a MeetingRequest comes in. All the good stuff is in the request, which is an appointment with meetingStatus set to olMeting (I think).

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    I'm trying to identify common Items which could have Attachments, and the VBA Help wasn't helping. See <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=out&Number=104574>this</A> thread.
    -John ... I float in liquid gardens
    UTC -7ąDS

  5. #5
    5 Star Lounger
    Join Date
    May 2001
    Location
    Washington, USA
    Posts
    750
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    OK. I can't find anything that indicates a meeting item can have an attachment. It will display one if one is included with the meeting request, but it is coming from the associated appointment item, so that's where you'd work with it.

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Roanoke area, Virginia, USA
    Posts
    3,729
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    do you use exchange 2000? or access the mailbox with an imap acct? if so you can get some information about the message type by looking at the raw message source.

    this is on a meeting request and the acceptance:
    content-class: urn:content-classes:calendarmessage

  7. #7
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Roanoke area, Virginia, USA
    Posts
    3,729
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    meeting requests and acceptances in the inbox include *.ics files attached. Outlook normally hides them and they are only visible if you open the mailbox with other clients or view the source from the server.

  8. #8
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    OL2000 and Exchange 2000. I don't think I need information about the message type, rather I'm trying to ensure that I have covered any Item which can carry an attached file.

    File Attachments (Word, XL, PPT, etc.) can be in:
    1. Meeting Requests in the Inbox or Sentbox, which I think are MeetingItems
    2. Accepted or Issued Meetings in the Calendar, which I think are AppointmentItems
    3. Regular E-Mail in any Mail Folder, which are MailItems

    ... hence my original question, and see the thread I referred to to make more sense of it.

    Here's the code I have so far, with my one problem point highlighted in red.

    Option Explicit

    Sub DetachandStamp()
    'Variation on the work of Jefferson Scher
    'Since there are three kind of items, use Object rather than specific namedItem
    Dim objContainer As Object, attAttFile As Attachment
    Dim cbtnSAF As CommandBarButton
    Dim strFileName As String, strFileStamp As String
    Dim boolValidItem As Boolean, intCtr As Integer

    'ensure item is open and has attachments,
    On Error Resume Next
    boolValidItem = TypeName(ActiveInspector.CurrentItem) = "MailItem" Or _
    TypeName(ActiveInspector.CurrentItem) = "AppointmentItem" Or _
    TypeName(ActiveInspector.CurrentItem) = "MeetingItem"

    If Err.Number Or Not boolValidItem Or _
    ActiveInspector.CurrentItem.Attachments.Count = 0 Then
    Beep
    MsgBox "No item is selected which has attachments," & _
    vbLf & "or an unknown error has occurred.", vbExclamation
    Exit Sub
    'dunno/don't care how to handle when Word is set as Editor, so avoid it
    ElseIf ActiveInspector.EditorType = olEditorWord Then
    Beep
    MsgBox "Not set up for Word as editor," & vbLf & _
    "no action will be taken.", vbExclamation
    Exit Sub
    End If

    'got this far so set object reference to item
    Set objContainer = ActiveInspector.CurrentItem
    'and set reference to the Save Attachments dialog
    Set cbtnSAF = ActiveInspector.CommandBars.FindControl(, 3167)

    'show the Save Attachments dialog
    'brings up two different dialogs depending if there is one, or more than one, attached files
    cbtnSAF.Execute
    <font color=red> 'need to handle the cancel or close without save; BUT dialog does not return anything</font color=red>

    'set up text notation for end of message
    strFileStamp = vbCrLf & "Attachment:
    -John ... I float in liquid gardens
    UTC -7ąDS

  9. #9
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Roanoke area, Virginia, USA
    Posts
    3,729
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    tasks and task requests can also have attachments- as can contacts and posts. Basically anything except notes.

    For meeting (and task) requests there is always an embedded item that gets added to the calendar (or task list)

    The referenced thread doesn't really add any information other than you want to delete attachments. if so, just recurse through all outlook folders and look for attachments to delete, skipping notes. You also don't have to open the item to delete attachments.

    Have you read Randy Byrne's or Sue Mosher's books on outlook programming? I think a crash course in outlook programming might prove to be a big help to you. It's not like programming in word or excel but once you get the hang of it, it's actually very easy.

  10. #10
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: MeetingItem vs. AppointmentItem (OL2kSR1)

    Thanks, good points.

    In my work I have a heavy volume of E-Mail and Meeting attachments which I need to store and work on. I want to do more than delete attachments, I want to:
    save the attachment,
    then only if the save is successful,
    stamp the saved attachment file name onto the Item,
    then delete the Attachment from the Item.

    Since nobody sends me tasks or contacts, I don't need to process those; any attachments to Tasks or Contacts are mine and already exist on my drives.

    You are right, time to buy a book, which do you recommend for someone with rudimentary VBA code skills but no knowledge of the OL object model?
    -John ... I float in liquid gardens
    UTC -7ąDS

Posting Permissions

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