Results 1 to 3 of 3

Variable Time Delay Cell References

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Talking Variable Time Delay Cell References

    Hi Guys,

    I shall be forever in your debt if you can get this working!

    The spreadsheet attached contains Data in a table, Column Heading : Times from 00:00 - 23:30 in half hourly increments, Row Heading: Contains dates from 01/01/08 - 29/01/09

    Sheet2 contains a button linked to a macro, when clicked it populates Cell B11 with the contents of 01/01/08 at 00:00 then cycles through to 00:30, 01:00, 01:30 until it reaches 23:30 then it drops to the next row and starts again at 00:00 on 02/01/08

    Sub cycle()
    
    Dim rCell As Range
    
    
    For Each rCell In Range("'14487059'!B2:AW366")
    
        Range("'14487059'!A1").Value = rCell
        Application.Wait (Now + TimeValue("0:00:0"))
    Next rCell
    
    End Sub
    I need a way to vary the cells this cycles through.

    I have made a search box which I am hoping to use to restrict the entries cycled through in cell B11.

    options are:

    Weekday / Weekend / all - Only Cycle through cells which occur on a weekend, weekday or all days.

    Time Selection: Only cycle through cells which occur between the selected times.

    Month Selection: Only cycle through cells which occur during that month.

    There can be any combination of these searches : eg: all cells which occur during a weekday between 13:00 and 18:00 during the month of May.

    Please let me know if you think it cannot be done so i can look for other solutions but if Excel can handle this then that will be ideal!

    Look Forward to what you guys can come up with!
    Attached Files Attached Files

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