More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

forum 18-Oct-2017 11:01

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

    Page [ 1 ]  
 Outlook Expert Techniques Printer Friendly Version
Working with toolbars, menus, ribbon; generating custom reports; deploying forms; connecting to databases, Exchange folders, and XML Web services
Topic
Help please! Custom Appointment Form - CheckBox to add Meeting Attendee
I have been searching around for weeks but cannot locate the solution to my issue. I apologize if this topic has been posted before!

I have a custom appointment form that is the second tab of my appointment (the default appointment tab is still visible and the custom tab "Client Appointment" is in place of the P.2 tab)

I would like to add a CheckBox so that when checked, adds a specific meeting attendee. I also need the code for when you uncheck the box, the attendee is removed.

My check box is on the custom tab "Client Appointment", for now the properties are set to the following:
Name- set to "CheckBox1"
Capiton- set to "CheckBox1"
Value- New Field with the Name="CheckBox1", Type="Yes/No", Format="Icon", Property to use="Value"


I have the following code (which when I used it on a Message form worked perfectly!)

'Add Client Calendar to Recipients when Client Meeting box is checked
Sub CheckBox1_Click()
Set myPage = Item.GetInspector.ModifiedFormPages("Client Appointment")
Set CheckBox1 = myPage.Controls("CheckBox1")
If CheckBox1.Value = True Then
Item.Recipients.Add "TEST RECIPIENTS NAME"
Else
For each recip in Item.Recipients
If recip.Name = "TEST RECIPIENTS NAME" then
recip.Delete
End If
Next
End If
Item.Recipients.ResolveAll
End Sub

Is this even possible on a custom appointment form?

Thank you in advance!

  15-May-2013  16:31
    Page [ 1 ]