I just need to show some text in the label, and then change the color of only one or two letters .
I created an XLabel(0) Label control and set .Visible = False and .Autosize = True . Then I basically read one line at a time from the array and load the new XLabel() controls, one for each letter in the line.
For z = 1 To Len(a) Load XLabel(z) With XLabel(z) .Caption = Mid(a, z, 1) .Left = XLabel(z - 1).Left + XLabel(z - 1).Width .BackColor = vbWhite .Visible = True End With Next z
Since Autosize is enabled, all tags are seated next to each other in the same way as inside a single shortcut control.
But in this way you can change one letter as you need.
Remember to unload all controls before moving around, if ever.
source share