Michael Williams
asked on
Lotusscript to Create Memo while Passing Data from another Document
I have a button on a form that will pull some information from that document to a new memo. Unfortunately, it is placing the Body text below the email signature (All Users have a signature). Any ideas how I can get the text to appear above the signture?
The above codes output:
USER SIGNATURE
Hello,
We have received your document, titled "Title of Document." We will review in a few days.
Please feel free to contact our office with any questions.
I would like the Body to look like the following:
Hello,
We have received your document, titled "Title of Document." We will review in a few days.
Please feel free to contact our office with any questions.
USER SIGNATURE
Dim wsUI As New NotesUIWorkspace
Dim dbMail As New NotesDatabase( "", "" )
Dim docMail As NotesDocument
Dim vComputeForm As Variant
Call dbMail.OpenMail
Set docMail = dbMail.CreateDocument
docMail.Form = "Memo"
docMail.Subject = "Review the following: " + docUI.Document.IDNum(0)
docMail.Body = |Hello,| + Chr(13) + Chr(13) +_
|We have received your document, titled "| + docUI.Document.Title(0) + |." We will review in a few days.| +_
|Please feel free to contact our office with any questions.|
Call wsUI.EditDocument( True, docMail )
The above codes output:
USER SIGNATURE
Hello,
We have received your document, titled "Title of Document." We will review in a few days.
Please feel free to contact our office with any questions.
I would like the Body to look like the following:
Hello,
We have received your document, titled "Title of Document." We will review in a few days.
Please feel free to contact our office with any questions.
USER SIGNATURE
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Awesome. Thank you very much.
In ended up using:
Dim CrLf as String
CrLf = Chr$(10) + Chr$(10)
In ended up using:
Dim CrLf as String
CrLf = Chr$(10) + Chr$(10)
ASKER
Open in new window
The above codes output:
Hello,We have received your document, titled "Title of Document." We will review in a few days.Please feel free to contact our office with any questions.
USER SIGNATURE