Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / October 2006

Tip: Looking for answers? Try searching our database.

Keeping form open after clicking Send

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lucien Levreault - 24 Oct 2006 16:12 GMT
Hello,

I would like to keep my custom published form open for further editing after
clicking the Send button. I have used the following code but it doesn't seem
to work:

Function Item_Close()

Msg = " Would you like to keep this form open for further updates? "
Response = MsgBox(Msg, vbYesNo+vbInformation, "Question")

If Response=vbYes then
    Item_Close = False
    Exit function
End if

Item_Close = True

End Function

This code works when I press ESC or try to close the form but not when I
click on Send. Any help would be appreciated.
Signature

Lucien Levreault

Hollis Paul - 24 Oct 2006 18:56 GMT
> I would like to keep my custom published form open for further editing after
> clicking the Send button. I have used the following code but it doesn't seem
> to work:

Do you really want it edit the message you just sent, or would you be happy
working on a new copy of the custom form.  If the latter, then you probably
want to do an Items.add("custom_form_name") from the write_event (not sure if
this gets hit twice after send), which will create the new item to work on.

If the former, then you would want to make a copy in the write event.  Not sure
what the method might be.

--
Hollis Paul
Mukilteo, WA  USA
Sue Mosher [MVP-Outlook] - 24 Oct 2006 20:14 GMT
Answered at http://www.outlookcode.com/codedetail.aspx?id=1407

Signature

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
 

> Hello,
>
[quoted text clipped - 18 lines]
> This code works when I press ESC or try to close the form but not when I
> click on Send. Any help would be appreciated.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.