![]() |
form not closing
I have created a form and published it to a folder. When I run the form (for
test) it opens and I can enter information, then when I forward it to someone, it sends, but the form stays open on my pc until I close it. Is there a way for the form to close after it is sent just like we do when we compose a mail message? I do not know any vb. Thanks, |
form not closing
The Close code Hollis suggests needs to go into the Forward event handler and should attempt to close the Inspector, not the Item, e.g.:
Function Item_Forward(ByVal ForwardItem) Const olSave = 0 Const olDiscard = 1 Const olPromptForSave = 2 Set insp = Item.GetInspector insp.Close olPromptForSave ForwardItem.Display End Function -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Hollis Paul [MVP - Outlook]" wrote in message ... In article , =?Utf-8?B?UGFtIENvbGVtYW4=?= wrote: Is there a way for the form to close after it is sent just like we do when we compose a mail message? I do not know any vb. Thanks, You only need to use VBScript. But basically, after the Item.send is issued, you want to do a Item.close(0), where the 0 means to save it first (I think.) You should go to www.outlookcode.com and search for an example that shows how to send Items by script. -- Hollis Paul Mukilteo, WA USA |
form not closing
In article ,
=?Utf-8?B?UGFtIENvbGVtYW4=?= wrote: Is there a way for the form to close after it is sent just like we do when we compose a mail message? I do not know any vb. Thanks, You only need to use VBScript. But basically, after the Item.send is issued, you want to do a Item.close(0), where the 0 means to save it first (I think.) You should go to www.outlookcode.com and search for an example that shows how to send Items by script. -- Hollis Paul Mukilteo, WA USA |
All times are GMT +1. The time now is 08:43 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com