Options
Outlook forms - CC field
cyberguypr
Mod Posts: 6,928 Mod
in Off-Topic
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.
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
-
Optionsinstant000 Member Posts: 1,745Are 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!) -
Optionsundomiel Member Posts: 2,818From 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/
-
Optionscyberguypr Mod Posts: 6,928 ModWhat they are doing in that thread with the drag+drop is showing the attendees that were added the regular way.
-
Optionscyberguypr Mod Posts: 6,928 ModFrom 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. -
Optionsundomiel Member Posts: 2,818Shouldn't that be Recipients.Type = olOptional?Jumping on the IT blogging band wagon -- http://www.jefferyland.com/