Send Button on Custom Task Form

S

steve

I'm experimenting with creating a custom task form. I want to
automatically assign all tasks to one person. To do that I set the
initial value of the "to:" field to "John Doe". I then use VBScript
to get rid of the Assign button from the Command bar. The final step
is to add the Send button to the command bar, so the task can be sent
to the person assigned. I can't figure out how to do that. Any
ideas. Here's the code I used to get rid of the Assign button.

dim MyCommandBar
dim MyMenu
set MyCommandBar=Item.GetInspector.commandbars.item("standard")
set MyMenu = MyCommandBar.Controls("assign task")
MyMenu.Visible = false


thanks
 
S

Sue Mosher [MVP-Outlook]

You must call Item.Assign in order for the Send button to display.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top