excell charts

mal

New Member
Joined
Apr 30, 2002
Messages
4
how to change the range of cells, used on a chart, through a macro
This message was edited by mal on 2002-05-01 16:16
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
hope this helps a bit

chartrange = inputbox ("enter chart range here")
ActiveChart.SetSourceData Source:=Sheets("Sheet1").RangechartrangePlotBy _
:=xlColumns
 
Upvote 0
goto record new macro, then click on your chart. now goto data/change data source, and change it here.
now stop the macro recording, and look at your source code.
This message was edited by Qroozn on 2002-05-01 18:08
 
Upvote 0

Forum statistics

Threads
1,213,563
Messages
6,114,329
Members
448,564
Latest member
ED38

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