View Single Post
 
Old 03-06-2019, 04:14 PM
kevinbradley57 kevinbradley57 is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Jul 2017
Posts: 85
kevinbradley57 is on a distinguished road
Default Remove "space before" of unordered list

The following code creates a string in an Outlook email composed of two bulleted lists with variables. Unfortunately, it applies Outlook's default paragraph formatting of "Auto" for the Before and After spacing, resulting in space between the header ("Completed" and "Remaining") and the subsequent bullet item. I need to remove that space. Any suggestions?

Code:
StrBody = StrBody & "<body style='font-family:Tahoma;font-size:12;line-height:1; margin-bottom:0; margin-top:0;'>" _
     & "<br>Current Period Highlights (through approximately " & dtCurrQtrEnd & "):" _
     & "<br>Completed:" _
     & "<ul style=margin-top:-30px><li>" & intReportsIssued & " audit reports</li>" _
     & "<li style=margin-top: 0px; margin-bottom: 0px; >" & intMemoIssued & " validation memos</li>" _
     & "<li>" & intProjCompleted & " audit support projects</li>" _
     & "</ul>" _
     & "Remaining:" _
     & "<ul><li>" & intReportsRemain & " audit reports</li>" _
     & "<li>" & intProjRemain & " audit support projects</li>" _
     & "</ul><br>" _