Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
variable range automation
I have two identical tables side by side and I'm trying to use one line of
code to create a chart for both tables. How do I write a variable range? My code is as follows: If intColumns = 0 Then ActiveChart.SetSourceData Source:=Sheets("cbot").Range("A2:E30"), PlotBy:= _ xlColumns Else ActiveChart.SetSourceData Source:=Sheets("cbot").Range("I2:M30"), PlotBy:= _ xlColumns End If -- Ryan Proudfit |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Automation of change of data range | Charts and Charting in Excel | |||
variable range automation | Charts and Charting in Excel | |||
setting a range variable equal to the value of a string variable | Excel Programming | |||
Problem trying to us a range variable as an array variable | Excel Programming | |||
Range.Formula and Range question using Excel Automation | Excel Programming |