G
Guest
I have some code which uses ActiveCell.characters(##,##) type approach to
format the font of specific characters. I have had trouble though when the
code adds text to the cell and then does its coloring. Let me explain.
Say you have a cell and you are going to write 5 sentences in it via VB.
Say each of the 5 was going to be a different color. My existing code only
seems to get the first and last colors correct. Intermediate cells adopt the
formatting of the first sentence. For some reason, the formatting applied to
the intermediate sentences is getting lost.
I don't understand this but wonder if you have to be really careful with the
insert point. When I say .formula=.formula & "new text" for example, does
this approach end up erasing some of the previous formatting done to the cell?
format the font of specific characters. I have had trouble though when the
code adds text to the cell and then does its coloring. Let me explain.
Say you have a cell and you are going to write 5 sentences in it via VB.
Say each of the 5 was going to be a different color. My existing code only
seems to get the first and last colors correct. Intermediate cells adopt the
formatting of the first sentence. For some reason, the formatting applied to
the intermediate sentences is getting lost.
I don't understand this but wonder if you have to be really careful with the
insert point. When I say .formula=.formula & "new text" for example, does
this approach end up erasing some of the previous formatting done to the cell?