![]() |
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
|
|||
|
|||
![]()
Hi,
I have created an approval request form which can be sent to users for approval or rejection. The recipient can then either 'approve' or 'reject' by clicking on voting buttons from within the form. Either button click triggers 'approve' or 'reject' forms (which are duplicates of the original form) to be sent back to the user and copied to a public folder. The 'approve' or 'reject' forms retain text from the original request form in every text box apart from the email message text box. Does anyone know why this is? I had the same problem with the 'approve' and 'reject' forms retaining attachments and found the following vb code: Function Item_CustomAction(ByVal Action, ByVal NewItem) If Action.Name = "Activity Approved" Then Call CopyAttachments(Item, NewItem) Item.close(1) Else Item.save Call CopyAttachments(Item, NewItem) Item.Close(1) End If End Function Sub CopyAttachments(objSourceItem, objTargetItem) Set fso = CreateObject("Scripting.FileSystemObject") Set fldTemp = fso.GetSpecialFolder(2) ' TemporaryFolder strPath = fldTemp.Path & "\" For Each objAtt In objSourceItem.Attachments strFile = strPath & objAtt.FileName objAtt.SaveAsFile strFile objTargetItem.Attachments.Add strFile, , , objAtt.DisplayName fso.DeleteFile strFile Next Set fldTemp = Nothing Set fso = Nothing End Sub How do I modify this code to save the email message text as well? I'm not really a programmer so any help would be MUCH appreciated. Nancy. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
search for text in a message, OE 6 | roger | Outlook Express | 1 | February 27th 07 12:43 AM |
text message notification | Scott0141 | Outlook - Calandaring | 1 | January 27th 07 04:05 AM |
text mysteriously disappears | karen | Outlook - General Queries | 2 | June 19th 06 11:34 PM |
Message disappears from 2003 when viewed by 2000 client | [email protected] | Outlook - General Queries | 2 | May 15th 06 09:54 PM |
No text in message | Rob graham | Outlook Express | 3 | March 2nd 06 08:48 AM |