Hi,
Use a dummy series to mimic the axis.
If you link the datalabels to cells you will not be able to use
superscript. So you will have to set the text explicitly.
The routine below will create the text and format the power value to
superscript.
Sub MakeSuperScript()
Dim intIndex As Integer
Dim strPower As String
' Adjust SeriesCollection(2) so it uses your dummy series
With ActiveChart.SeriesCollection(2)
.HasDataLabels = True
.DataLabels.Position = xlLabelPositionBelow
For intIndex = 1 To .DataLabels.Count
strPower = CStr(intIndex - 1)
.DataLabels(intIndex).Text = "10" & strPower
.DataLabels(intIndex).Characters(3,
Len(strPower)).Font.Superscript = True
Next
End With
End Sub
Hope this helps
I've looked for that as well. I'm pretty sure it's not available directly
in Excel.
You might be able to trick it into doing what you wish using a dummy series
and Rob Bovey's chart labeler. I just tried it, and it will do 10^0, 10^1,
etc. But it will *not* do superscripts, so you would have to use the carat.
I guess you could use two dummy series, each with their own labels...
My description is pretty brief. If you want a few more details, let me
know.
Dave
dvt at psu dot edu
--
Cheers
Andy
http://www.andypope.info