![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 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 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
hope this helps a bit
chartrange = inputbox ("enter chart range here") ActiveChart.SetSourceData Source:=Sheets("Sheet1").RangechartrangePlotBy _ :=xlColumns |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
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 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|