Home |
Search |
Today's Posts |
#1
|
|||
|
|||
variable range automation
I have two identical tables side by side and I'm trying to use one line of
code to work 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 | |||
How can I assign a range starting cell based on a variable locati. | Excel Discussion (Misc queries) | |||
How can I assign a range starting cell based on a variable locati. | Excel Worksheet Functions | |||
Define a range based on another named range | Excel Worksheet Functions | |||
empty variable range | Excel Discussion (Misc queries) | |||
variable range countif | Excel Worksheet Functions |