View Single Post
 
Old 09-08-2016, 10:55 AM
Gadget Gadget is offline Windows 10 Office 2016
Novice
 
Join Date: Sep 2016
Posts: 2
Gadget is on a distinguished road
Default 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?
Reply With Quote