Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can also do this without VBA using dynamic ranges:
http://pubs.logicalexpressions.com/P...cle.asp?ID=246 - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions http://PeltierTech.com _______ "SIR Knight" wrote in message ps.com... Matz, You can do this using VBA as follows If you enter your start date in Cell A1, and End Date in A2 you can then use a macro to use these values in the scale: 'set start and end dates uvStart = Format(Range("A1").Value, "##") uvEnd = Format(Range("A2").Value, "##") 'set Axes values to styart and end dates ActiveSheet.ChartObjects("Chart 1").Activate ActiveChart.Axes(xlValue).Select With ActiveChart.Axes(xlValue) .MinimumScale = uvStart .MaximumScale = uvEnd End With I have assumed that your chart is called "Chart 1". You can change the code as required for chart name or location of you dates I hope this helps Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Variable time calculation | New Users to Excel | |||
unmet challenge | Excel Worksheet Functions | |||
Excel sheet for workout jogging time and graph | New Users to Excel | |||
Time axis column and scatter/line graph | Charts and Charting in Excel | |||
xy scatter graph with a scrolling time element | Charts and Charting in Excel |