Outlook forms - CC field

cyberguyprcyberguypr Senior MemberPosts: 6,740Mod Mod
Anyone familiar with Outlook forms? I am working on a custom meeting form and need to add a user as Optional Attendee when clicking a button. I added this code:

Sub cmdBtn_Click()
Recipients.Add ("John Doe")
Recipients.ResolveAll
End Sub

It works, but it adds the user as required instead of optional. I am sure there some syntax that can be added to the command to make it optional.

Comments

  • instant000instant000 Posts: 1,745Member
    Are you using custom forms design mode?

    They make it sound like a drag-and-drop operation in this thread:

    This thread seems to "talk around" this same topic.
    They seem to say that "required" and "optional" have to be specified separately.

    In this case, maybe that button you have already has something on it to make it "required" and you need to modify it to get an "optional" instead. ... which, based on the post below, looks like you have to use a separate button.

    How to get all the recipients of an appointment in my custom form?

    Of course, I'm not a developer by trade, I'm just looking this over and jumping to a conclusion, in trying to help you out.
    Currently Working: CCIE R&S
    LinkedIn: http://www.linkedin.com/in/lewislampkin (Please connect: Just say you're from TechExams.Net!)
  • undomielundomiel Posts: 2,818Member
    From what I see here, Type Property you would want to set the Type to olOptional.
    Jumping on the IT blogging band wagon -- http://www.jefferyland.com/
  • cyberguyprcyberguypr Senior Member Posts: 6,740Mod Mod
    What they are doing in that thread with the drag+drop is showing the attendees that were added the regular way.
  • cyberguyprcyberguypr Senior Member Posts: 6,740Mod Mod
    undomiel wrote: »
    From what I see here, Type Property you would want to set the Type to olOptional.

    Based on that I tried this:

    Sub cmdBtn_Click()
    Recipients.Add ("Joe Chicago")
    Type = olOptional
    Recipients.ResolveAll
    End Sub

    Of course it didn't work. I have no idea what the syntax should be. I HATE all kinds of programming.
  • undomielundomiel Posts: 2,818Member
    Shouldn't that be Recipients.Type = olOptional?
    Jumping on the IT blogging band wagon -- http://www.jefferyland.com/
Sign In or Register to comment.