A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

form not closing



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 29th 06, 09:05 PM posted to microsoft.public.outlook.program_forms
Pam Coleman
external usenet poster
 
Posts: 4
Default 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,
  #2  
Old August 30th 06, 01:14 AM posted to microsoft.public.outlook.program_forms
Hollis Paul [MVP - Outlook]
external usenet poster
 
Posts: 138
Default 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


  #3  
Old August 30th 06, 12:20 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 12:38 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-2025 Outlook Banter.
The comments are property of their posters.