This excel code does not work. Why? Indeed I can not make work any superscript
code. I use Excel 2007
note: intRow and intColumn are integers which determine the row and column.
Cells(intRow, intColumn).Characters(Start:=Len(Cells(intRow, intColumn).Value), Length:=1).Font.Superscript = True
I found the problem. It is the
format
of the cell. It must betext
.Adding that line before the
superscript
line solved the problem:Thanks.
You need to fully qualify all your cells. This works: