Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How to define a variable-size area in a time-series chart-creating macro that
would include all the data in a worksheet, starting for example from cell B6? RyGuy suggested using Sub Ender() Range("B6").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select End Sub but how to include these values in the chart-creating code instead of the direct "B6:E100" address in the example given below? Sheets("Data").Select Range("B6").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select Charts.Add ActiveChart.ChartType = xlLineMarkers ActiveChart.SetSourceData Source:=Sheets("Data").Range("B6:E100") ActiveChart.Location Whe=xlLocationAsObject, Name:="Data" z.entropic |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Defining Font Size in VBA | Excel Discussion (Misc queries) | |||
defining a variable-size worksheet area for copying & pasting | Excel Worksheet Functions | |||
Defining UserForm Caption from a Variable | Excel Worksheet Functions | |||
How do I Add a variable in the legend without charting the data? | Charts and Charting in Excel | |||
Defining maximum value from a named range for charting purposes | Charts and Charting in Excel |