Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88066

How to position a shape in a chart?

$
0
0

I am trying to position a shape in a chart in Excel through VBA.

I set the parameters of the position. The result is the shape in a slightly different position.

I have searched the Internet but I have not found a satisfying answer as to why this happens.

I use this code

Set shpRect = Chart1.Shapes.AddShape(msoShapeRectangle, 50, 75, 250, 175) 

It generates a rectangle not in the 50, 75 position but in the position 60, 80.


Viewing all articles
Browse latest Browse all 88066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>