troubleshooting Question

How to Remove blank lines in email signature in outlook?

Avatar of Hitesh Prajapati
Hitesh Prajapati asked on
OutlookVB Script
2 Comments1 Solution751 ViewsLast Modified:
As per client requirement, I have to remove blank lines from reply message in Email Signature.
1)

1.png
2) After clicking on OutLook-->Formate Text --> Plain Text

2.png
Here I want to remove these 5 lines using VBScript.

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

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

   selection.TypeParagraph()
   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)

Please Help me on this.

Thanks in advance.
ASKER CERTIFIED SOLUTION
KimputerIT Manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros