Execute o código a seguir para fins de teste.
Public Sub Macro1()
'Delete all charts
For i = ActiveSheet.Shapes.Count To 1 Step -1
If ActiveSheet.Shapes(i).Type = msoChart Then
ActiveSheet.Shapes(i).Delete
End If
Next i
'Add a chart.
With ActiveSheet.ChartObjects.Add(Left:=10, Top:=10, Width:=400, Height:=200)
.Name = "myChart"
End With
'Add a serie.
With ActiveSheet.ChartObjects("myChart").Chart.SeriesCollection.NewSeries
.ChartType = xlLine
.XValues = Array(10, 20, 30, 40, 50)
.Values = Array(1, 2, 3, 4, 5)
End With
'Apply a new chart style template
ActiveSheet.ChartObjects("myChart").Chart.ClearToMatchStyle
ActiveSheet.ChartObjects("myChart").Chart.ChartStyle = 233
End Sub
Quero extrair todas as propriedades do gráfico acima.
O link a seguir fornece uma boa resposta, mas não sei como usar a janela VBE Locals .
Para exibir algo na janela local, você precisa ter uma variável local apontando para o que lhe interessa.
Use um código como este (talvez você tenha que adaptá-lo um pouco)
Defina um ponto de interrupção na
End Sub
linha - e deixe o código ser executado.O tlbinf32.dll permite listar todas as propriedades de um objeto, mas como o próprio nome diz, ele só funciona no Office de 32 bits (eu acho). Veja: https://jkp-ads.com/articles/objectlister.aspx