Results 1 to 4 of 4

Thread: VBA for adding multiple content fields into Subject Header

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Newbie
    Joined
    Mar 2020
    Posts
    2
    Location

    VBA for adding multiple content fields into Subject Header

    Hi there,

    I have successfully managed to link a submit button that issues an email with the subject field being filled based off of a field's value.

    I am using this method:

    [CODE]With EmailItem
    .Subject = Me.SelectContentControlsByTitle("Service Number")(1).Range.Text
    .Body = "Thanks for submitting!" & vbCrLf & _
    "BODY SECOND LINE" & vbCrLf & _
    "BODY THIRD LINE"
    .To = "boost.emailadress.com"
    .Importance = olImportanceNormal 'Or olImprotanceHigh Or olimprotanceLow
    .Attachments.Add Doc.FullName
    .Send
    End With[/CODE]


    how can i add a second or third element to the subject line? I ideally would want to have three more form content controls displaying their data.

    Have tried a few alternative means of setting the subject line; for example the me.[content name].value and activedocument.formfields ; but can't seem too get any headway.

    Any assistance is greatly appreciated.
    Last edited by macropod; 03-17-2020 at 07:15 PM. Reason: Repaired code tags

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •