The following code, run from a command button, worked:
Sub ChangeScale()
ActiveSheet.ChartObjects(1).Activate
With ActiveChart.Axes(xlCategory)
.MinimumScale = Range("E2").Value
End With
End Sub
Are you sure that the value in cell E2 is a valid date?
What error are you getting?
> I have a spreadsheet with dates and data to be graphed for
> each date. I would like to customize the x-axis(time)
[quoted text clipped - 14 lines]
> Thanks for your help,
> Felipe

Signature
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html
Felipe I - 25 Aug 2003 21:53 GMT
It worked!
Thank you very much ... I still don´t know what I was
doing wrong though...
>-----Original Message-----
>The following code, run from a command button, worked:
[quoted text clipped - 27 lines]
>> Thanks for your help,
>> Felipe