Jyggalag
Active Member
- Joined
- Mar 8, 2021
- Messages
- 445
- Office Version
- 365
- 2019
- Platform
- Windows
Hi all,
I have this VBA code to write an email body text:
eBody = "Dear person," & "<BR><BR>"
eBody = eBody & " 1Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text (Text text Text text Text text "quote") Text text Text text Text text Text text Text text Text text Text text. " & "<BR><BR>"
eBody = eBody & " 2Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text. " & "<BR><BR>"
eBody = eBody & " 3Text text, """ & "<b><u>" ", Text text Text text Text text Text text Text text Text text Text text Text text" & "</b></u>" & " ""Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text. " & "<BR><BR>"
eBody = eBody & " 4Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text """ & "<b><u>" "Text text Text text Text text Text text Text text Text text" & "</b></u>" & " ""Text text Text text Text text Text text Text text. " & "<BR><BR>"
eBody = eBody & " 5Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text.. " & "<BR><BR>"
eBody = eBody & " 6Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text. """ & "<b>" "Text text Text text Text text Text text Text text Text text." & "</b>" & " ""Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text:" & "<BR><BR>"
eBody = eBody & "<b>" & "-" & "</b>"
eBody = eBody & "Text1text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1" & "<BR>"
eBody = eBody & "<b>" & "-" & "</b>"
eBody = eBody & "Text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2" & "<BR>"
eBody = eBody & "<b>" & "-" & "</b>"
eBody = eBody & "Text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3" & "<BR>"
eBody = eBody & "<b>" & "-" & "</b>"
eBody = eBody & "Text4 Text4 Text4 Text4 Text4 Text4 Text4 Text4""" & "<b><u>" "Text4 Text4 Text4 Text4 Text4 Text4 Text4" & "</b></u>" & "". "" & "<BR><BR>"
eBody = eBody & "Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text """ & "<u>" "TextText TextTextTextTextTextText." & "</u>" & " ""." & "<BR><BR>"
eBody = eBody & "Kind regards," & "<BR><BR>"
I want it to come out looking like this when it is inserted into an email (screenshot from word):
Can somebody please take a look at my code, maybe run it if possible, and tell me if the email formatting is on point? And if not, can you please assist me in fixing whatever formatting errors might be there?
I am having some difficulty running itself myself at the moment and I am really worried about the text written in bold with an underline (b and u) and whether it has been coded correctly.
I would appreciate some assistance a lot!
Thank you everybody
Kind regards,
Jyggalag.
I have this VBA code to write an email body text:
eBody = "Dear person," & "<BR><BR>"
eBody = eBody & " 1Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text (Text text Text text Text text "quote") Text text Text text Text text Text text Text text Text text Text text. " & "<BR><BR>"
eBody = eBody & " 2Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text. " & "<BR><BR>"
eBody = eBody & " 3Text text, """ & "<b><u>" ", Text text Text text Text text Text text Text text Text text Text text Text text" & "</b></u>" & " ""Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text. " & "<BR><BR>"
eBody = eBody & " 4Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text """ & "<b><u>" "Text text Text text Text text Text text Text text Text text" & "</b></u>" & " ""Text text Text text Text text Text text Text text. " & "<BR><BR>"
eBody = eBody & " 5Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text.. " & "<BR><BR>"
eBody = eBody & " 6Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text. """ & "<b>" "Text text Text text Text text Text text Text text Text text." & "</b>" & " ""Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text Text text:" & "<BR><BR>"
eBody = eBody & "<b>" & "-" & "</b>"
eBody = eBody & "Text1text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1 text1" & "<BR>"
eBody = eBody & "<b>" & "-" & "</b>"
eBody = eBody & "Text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2 text2" & "<BR>"
eBody = eBody & "<b>" & "-" & "</b>"
eBody = eBody & "Text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3 text3" & "<BR>"
eBody = eBody & "<b>" & "-" & "</b>"
eBody = eBody & "Text4 Text4 Text4 Text4 Text4 Text4 Text4 Text4""" & "<b><u>" "Text4 Text4 Text4 Text4 Text4 Text4 Text4" & "</b></u>" & "". "" & "<BR><BR>"
eBody = eBody & "Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text """ & "<u>" "TextText TextTextTextTextTextText." & "</u>" & " ""." & "<BR><BR>"
eBody = eBody & "Kind regards," & "<BR><BR>"
I want it to come out looking like this when it is inserted into an email (screenshot from word):
Can somebody please take a look at my code, maybe run it if possible, and tell me if the email formatting is on point? And if not, can you please assist me in fixing whatever formatting errors might be there?
I am having some difficulty running itself myself at the moment and I am really worried about the text written in bold with an underline (b and u) and whether it has been coded correctly.
I would appreciate some assistance a lot!
Thank you everybody
Kind regards,
Jyggalag.