moving charts in a macro

slacey

New Member
Joined
Mar 21, 2002
Messages
1
Hi,

I am writing a macro. The macro is a loop that takes data and generates a handful of charts that are inserted as embedded objects in a worksheet. All I want to do is specify the location of the chart on the worksheet. I want the location to be specified relative to the worksheet--not the current location of the chart.

For example, in pseudocode

select chart 1
move chart1 to Cells(1,4)

The goal would be to have the upper left hand of the chart at the specified cell location. You can get excel to do this by cuting and pasting the chart, but excel renames the chart in the process. You can also use the increment property to move the chart, but the move is relative to the starting location of the chart. I need a property that defines movements relative to location on the worksheet.

I hope this makes sense. If anyone can help, I would greatly appreciate it.

Thanks,
Steve
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,213,556
Messages
6,114,284
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top