RobBroekhuis
Technical User
This is puzzling the heck out of me: I'm trying to put a horizontal line on an excel chart, using the following code:
ActiveChart.Shapes.AddLine(LegX + 6, LineY, LegX + 26, LineY).Select
LegX and LineY are declared single (as per the AddLine parameter definition). For some reason, this code always puts a not-quite-horizontal line on my chart, with a .top that is 0.5 points smaller than my LineY, and a .height of 0.75. Somehow, the point-to-pixel conversion for the starting point seems to be different from that for the end point. What can I do to prevent this?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
ActiveChart.Shapes.AddLine(LegX + 6, LineY, LegX + 26, LineY).Select
LegX and LineY are declared single (as per the AddLine parameter definition). For some reason, this code always puts a not-quite-horizontal line on my chart, with a .top that is 0.5 points smaller than my LineY, and a .height of 0.75. Somehow, the point-to-pixel conversion for the starting point seems to be different from that for the end point. What can I do to prevent this?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)