Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50178

Automatically format chart size and axis

$
0
0
I have a scatter chart that I am using as a map. In other words, if I have a space that is 100x200 feet, based upon other criteria the chart will plot a location or multiple locations. What I would like to have happen is for the size of the chart match the shape of the space to result in a specific square or rectangle. Also I would like to have the x and y axis maximum to equal the dimensions of the space.

I suspect that the size of the chart would be controlled by a macro, just not sure how to write that script.

As for the maximum axis bounds, obviously the default is either "auto" or a user defined value. The auto follows the plot coordinates, not the spacial dimensions. Again, if this is possible I would think it would be through a macro, but I don't know where to even begin to write this one up.

Thanks for your help.

Viewing all articles
Browse latest Browse all 50178

Trending Articles