Reputation: 2534
The value gets highlighted but not the trailing space.
This is what I tried so far.
HTMLReport.Append('<td align='left' valign='top'><span style='background-color: #FFFF00'>')
HTMLReport.Append(.value)
HTMLReport.Append('</span></td>')
Upvotes: 0
Views: 83
Reputation: 8614
Use
instead of space. If you have a variable you want to concatenate, substitute spaces like this:
myValue.Replace(" ", " ");
Another approach is to use tables and cells with background color to achieve the effect.
Upvotes: 1