Solved

list properties of a chart object in VBA?

Posted on 2014-04-20
3
1,595 Views
Last Modified: 2014-04-20
In local window, the following solution list chart properties.

stackoverflow.com/questions/16066878/how-to-list-properties-of-a-chart-object-in-vba

I don't see how it is done.

Question: Could you explain how this is done?

Thank you.


<<Per site policy, removed the http:// from link to a competitive site--byundt 4-21-2014>>
0
Comment
Question by:Mike Eghtebas
3 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40012024
From the menu go to

View > Locals window
0
 
LVL 80

Accepted Solution

by:
byundt earned 500 total points
ID: 40012028
Mike,
I had never seen this before. Thanks for bringing it to my attention.

To view the Locals pane, do the following:
1.  Create an embedded chart (i.e. somewhere on a worksheet)
2.  ALT + F11 to go to the VBA Editor
3.  Dismiss the Immediate pane by clicking the X at its upper right corner. Make sure there is room underneath the code pane for the Locals pane. Resize it if necessary.
4.  View...Locals to display the Locals pane
5.  Put a macro in the code pane that references your chart. I used the following:
Sub test()
Dim cht As ChartObject
Set cht = Worksheets("Sheet2").ChartObjects(1)
End Sub

Open in new window

6.  F8 to step through the code
7.  When you get to any statement after the one that Sets cht, click the + in the Locals pane next to cht
 Locals pane in my VBA EditorBrad
0
 
LVL 33

Author Closing Comment

by:Mike Eghtebas
ID: 40012031
Thank you.

Mike
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now