Avatar of Hitesh Prajapati
Hitesh Prajapati
 asked on

How to Remove blank lines in email signature in outlook?

As per client requirement, I have to remove blank lines from reply message in Email Signature.

2) After clicking on OutLook-->Formate Text --> Plain Text

Here I want to remove these 5 lines using VBScript.

If Not BannerImage = "" And Not Left(BannerImage, 8) = "Excluded" Then
           debugLog("Setting Marketing Banner")

       Set Logo = selection.InlineShapes.AddPicture(BannerImage)
       document.Hyperlinks.Add logo.Range, BannerURL
       End If   

   selection.Font.Name = "Arial"
   selection.Font.Size = "7"

If recordset.Fields("co") <> "Netherlands" Then

           debugLog("Setting Facebook Logo")

   Set Logo = selection.InlineShapes.AddPicture(FacebookLogo)
   document.Hyperlinks.Add logo.Range, FacebookURL
   Logo.Height = 19
   Logo.Width = 19

End If

       debugLog("Setting LinkedIn Logo")

   Set Logo = selection.InlineShapes.AddPicture(LinkedInLogo)
   document.Hyperlinks.Add logo.Range, LinkedInURL
   Logo.Height = 19
   Logo.Width = 19

       debugLog("Setting Twitter Logo")

   Set Logo = selection.InlineShapes.AddPicture(TwitterLogo)
   document.Hyperlinks.Add logo.Range, TwitterURL
   Logo.Height = 19
   Logo.Width = 19

       debugLog("Setting YouTube Logo")

   Set Logo = selection.InlineShapes.AddPicture(YouTubeLogo)
   document.Hyperlinks.Add logo.Range, YouTubeURL
   Logo.Height = 19
   Logo.Width = 19

       debugLog("Setting Disclaimers")

       If Not Disclaimer1Text = "" Then
       selection.TypeText Chr(11)
       selection.TypeText Chr(11)

Open in new window

Please Help me on this.

Thanks in advance.
VB ScriptOutlook

Avatar of undefined
Last Comment
Seth Simmons

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Seth Simmons

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Kimputer (https:#a42362628)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Experts-Exchange Cleanup Volunteer
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes