You can adjust the code to do this automatically. A recorded macro will
make a chart sheet first, then change its location to a sheet. When it
moves the chart, it sticks it in the middle of the active window (active
pane if you have split panes activated), about half the width and height
of the window's usable height.
Instead of this two step process using Charts.Add, use this:
ActiveSheet.ChartObjects.Add left, top, width, height
where left, top, width, height are dimensions and positions in points.
There's more about VBA and charting here:
http://peltiertech.com/Excel/ChartsH...kChartVBA.html
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
Tushar Mehta wrote:
> Use something along the lines of:
>
> Sub testIt()
> With ActiveSheet.ChartObjects(1)
> .Left = Cells(3, 3).Left
> .Top = Cells(3, 3).Top
> .Height = 200
> .Width = 300
> End With
> End Sub
>