I wanted to record a macro for giving format to a chart's data table. The generated code with the macro recorder was:
ActiveSheet.ChartObjects("Gráfico 3").Activate
"Tabla de datos".Comment.Shape.Select ' Here there is a mistake
Selection.AutoScaleFont = True
With Selection.Font
.Name = "Arial Narrow"
.FontStyle = "Normal"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.Background = xlAutomatic
End With
but the second generated statement has an error (the statement appears red colored).
Could you tell me please why is this error generated?
Which ones are the VBA statements for formatting a chart's data table (change fornt type,size, etcetera.) ? . Currently using Excel XP.
Thanks a lot for your help.
ActiveSheet.ChartObjects("Gráfico 3").Activate
"Tabla de datos".Comment.Shape.Select ' Here there is a mistake
Selection.AutoScaleFont = True
With Selection.Font
.Name = "Arial Narrow"
.FontStyle = "Normal"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.Background = xlAutomatic
End With
but the second generated statement has an error (the statement appears red colored).
Could you tell me please why is this error generated?
Which ones are the VBA statements for formatting a chart's data table (change fornt type,size, etcetera.) ? . Currently using Excel XP.
Thanks a lot for your help.