Solved

list properties of a chart object in VBA?

Posted on 2014-04-20
3
1,749 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 43

Expert Comment

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

View > Locals window
0
 
LVL 81

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 34

Author Closing Comment

by:Mike Eghtebas
ID: 40012031
Thank you.

Mike
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

756 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