+ Reply to Thread
Results 1 to 3 of 3

making a timeline

  1. #1
    alvin Kuiper
    Guest

    making a timeline

    Is there away to make a timeline
    where i know the lowest and highest value
    and where i know
    the middel and varians value

    Thanks

    Alvin


  2. #2
    Tom Ogilvy
    Guest

    Re: making a timeline

    Here is a rough start for you.


    Sub ab()
    Dim j As Long, i As Date
    Dim StartDate As Date, EndDate As Date
    Dim Interval As Long
    Dim NumOfIntervals As Long

    StartDate = #1/1/2006#
    EndDate = #3/31/2006#
    NumOfIntervals = 15

    j = 0
    Interval = Int((EndDate - StartDate) / NumOfIntervals)
    For i = StartDate To EndDate Step Interval
    Range("A1").Offset(0, j).Value = i
    j = j + 1
    Next


    End Sub

    --
    Regards,
    Tom Ogilvy


    "alvin Kuiper" <alvinKuiper@discussions.microsoft.com> wrote in message
    news:6D2727F2-EFA1-4EEA-A74E-23BD86942456@microsoft.com...
    > Is there away to make a timeline
    > where i know the lowest and highest value
    > and where i know
    > the middel and varians value
    >
    > Thanks
    >
    > Alvin
    >




  3. #3
    alvin Kuiper
    Guest

    Re: making a timeline

    Hi tom

    It was not whar i ment, I try to explain later and come back
    with a new thread is that allright??

    But thanks
    Alvin


    "Tom Ogilvy" wrote:

    > Here is a rough start for you.
    >
    >
    > Sub ab()
    > Dim j As Long, i As Date
    > Dim StartDate As Date, EndDate As Date
    > Dim Interval As Long
    > Dim NumOfIntervals As Long
    >
    > StartDate = #1/1/2006#
    > EndDate = #3/31/2006#
    > NumOfIntervals = 15
    >
    > j = 0
    > Interval = Int((EndDate - StartDate) / NumOfIntervals)
    > For i = StartDate To EndDate Step Interval
    > Range("A1").Offset(0, j).Value = i
    > j = j + 1
    > Next
    >
    >
    > End Sub
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "alvin Kuiper" <alvinKuiper@discussions.microsoft.com> wrote in message
    > news:6D2727F2-EFA1-4EEA-A74E-23BD86942456@microsoft.com...
    > > Is there away to make a timeline
    > > where i know the lowest and highest value
    > > and where i know
    > > the middel and varians value
    > >
    > > Thanks
    > >
    > > Alvin
    > >

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1