ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Chart Title SuperScript (https://www.excelbanter.com/excel-programming/315226-chart-title-superscript.html)

Bill[_28_]

Chart Title SuperScript
 
Hello,
I have a chart title with only one character that I want to make superscript
using VBA Code. For example:

"This is my number R2 today"

I want the 2 to be superscript. Is there a way to do that?

Thanks.

Bill



K Dales[_2_]

Chart Title SuperScript
 
It is a mouthful, but:
Worksheets("Sheet1").ChartObjects(1).Chart.ChartTi tle.Characters(20,1).Font.Superscript = True

"Bill" wrote:

Hello,
I have a chart title with only one character that I want to make superscript
using VBA Code. For example:

"This is my number R2 today"

I want the 2 to be superscript. Is there a way to do that?

Thanks.

Bill




Bill[_28_]

Chart Title SuperScript
 
Thanks. That worked.

Bill
"K Dales" wrote in message
...
It is a mouthful, but:

Worksheets("Sheet1").ChartObjects(1).Chart.ChartTi tle.Characters(20,1).Font.
Superscript = True

"Bill" wrote:

Hello,
I have a chart title with only one character that I want to make

superscript
using VBA Code. For example:

"This is my number R2 today"

I want the 2 to be superscript. Is there a way to do that?

Thanks.

Bill







All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com