ActiveCell.Characters(Start:=1, Length:=14).Font
Posted: Mon Jan 21, 2019 7:05 am
I need to set the first 14 characters in a cell to font yellow and the remaining characters to font black. The following code is how it would be done using an Excel marco/ole.
Anyone know how to do it in XLSReadWrite?
With ActiveCell.Characters(Start:=1, Length:=14).Font
.Name = "Century Gothic"
.FontStyle = "Regular"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.Color = -16711681
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
Anyone know how to do it in XLSReadWrite?
With ActiveCell.Characters(Start:=1, Length:=14).Font
.Name = "Century Gothic"
.FontStyle = "Regular"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.Color = -16711681
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With