Re: Excel chart data label properties/methods 2003 VBA
Hi Bill,
If I understand your problem statement correctly, you have a single cell named range, "HIGHEST_POINT". And you want to store it's value in the variable "high_point". Here's the line of code that will do it:
high_point = Range("HIGHEST_POINT")
Note: this line only works for a single cell named range. A range with multiple cells would throw an error. For multi-cell ranges, you would need to loop through the individual cells, or refer to them somehow by their relative location within the range.
The easiest way to see the values of your variables while your code is executing is with the Locals Window. You can open it from the VBE View menu. There are some other excellent tools for evaluation and experimentation in the Immediate Window and the Watch Window. If you're interested in exploring those, a google search using those terms with "VBE" turns up some great articles that would make it silly for me to go into more detail here.
Lastly, a friendly caution. The moderators on this forum are seriously sticklery about the forum rules. And technically you maybe should have started a new thread for questions unrelated to the topic of your initial question. For next time perhaps. Meanwhile, have fun adventures with your VBA!