![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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, |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook Not Closing Down | Alan W | Outlook - Installation | 1 | July 11th 06 10:32 PM |
automatically send e-mail when closing a custom outlook form | Keefo | Outlook - Using Forms | 1 | May 27th 06 03:22 PM |
Closing a PST file | Mark Rae | Outlook and VBA | 1 | May 6th 06 09:48 AM |
closing form | philippe | Outlook - Using Forms | 1 | May 3rd 06 02:02 PM |
Closing Outlook 2000 | JohnB | Outlook - General Queries | 4 | April 19th 06 07:27 PM |