karolina1406
Board Regular
- Joined
- Apr 18, 2016
- Messages
- 110
- Office Version
- 365
- Platform
- Windows
hi,
I am using vba to create an email from the UserForm. One of my TextBoxes (called "WorkInstructionsTX") in the form has multiline. How can I create an email so the information from this particular TextBox is multiline in an email body as well? I am using the below code:
.htmlbody = "Hi " & EngineerNameTX.Value & "," & "<br><br>" _
& "<b> text 1" & TOANoTX.Value & " </b> text 2" & SiteNameTX.Value & " on " & StartDateTX.Value & "< br > " _
& "</b>text 2" & "<br><br>" _
& "<b>Work required:" & "</b><br>" _
& WorkInstructionsTX.Text
I am using vba to create an email from the UserForm. One of my TextBoxes (called "WorkInstructionsTX") in the form has multiline. How can I create an email so the information from this particular TextBox is multiline in an email body as well? I am using the below code:
.htmlbody = "Hi " & EngineerNameTX.Value & "," & "<br><br>" _
& "<b> text 1" & TOANoTX.Value & " </b> text 2" & SiteNameTX.Value & " on " & StartDateTX.Value & "< br > " _
& "</b>text 2" & "<br><br>" _
& "<b>Work required:" & "</b><br>" _
& WorkInstructionsTX.Text