Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a table that is being filtered. I want a chart to be added
using a column found using a FIND. Because table is being filtered the last row is changes. So I am lost on how to set the range for the chart - see ***** in code below. This chart is being deleted and recreated after the filter changes. I was using the UsedRange, but that gives me part of my table that has been filtered out. Chart data should be (Column variable, cell 1 to column variable, cell in last row). I appreciate the help. - Mike 'data has been filtered, now find last row Range("A65000").End(xlUp).Select LastDataRow = ActiveCell.Row 'got last row 'now find the first dfParm in a series - so column is unknown as of now Rows("1:1").Select Selection.Find(What:=dfParm, After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False, SearchFormat:=False).Activate CrntCol = ActiveCell.Column 'got current column # Charts.Add ActiveChart.ChartType = xlXYScatter ActiveChart.SetSourceData Source:=Sheets(DataSheet).*****, PlotBy:=xlColumns |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
got it. thanks.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TROUBLE WITH GETTING DATE RANGE IN CHART/GRAPH | Charts and Charting in Excel | |||
Pie Chart trouble for 2007 | Charts and Charting in Excel | |||
Trouble creating a chart | Excel Programming | |||
chart trouble | Charts and Charting in Excel | |||
Orginizational Chart Trouble | Excel Discussion (Misc queries) |