Including Text Form Field info in the subject line of an email
Am using the following to send a Word form as an email:
Private Sub Document_New()
Options.SendMailAttach = True
ActiveWindow.EnvelopeVisible = True
With ActiveDocument.MailEnvelope.Item
.Subject = "Hospitality Services Request Form - [Name of Lawyer]"
.Recipients.Add "#Room Booking - HFX; #Housekeeping"
End With
If ActiveWindow.View.TableGridlines = True Then
ActiveWindow.View.TableGridlines = False
End If
End Sub
Is there a way to include information a user types into a Text Form Field (Bookmark name: bkLawyer) in the subject line of the email?
|