+ Reply to Thread
Results 1 to 3 of 3

Time delay to change cell reference

Hybrid View

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

    Question Time delay to change cell reference

    Hi Guys,

    I need a code which will take a lump of data, B2:AW366 and cycle through the data in a single cell (A1)

    So to clarify Cell A1 should cycle through:

    B2
    C2
    D2
    E2
    ...
    ...
    ...
    AU2
    AV2
    AW2
    B3
    C3
    D3
    E3
    .....
    .....
    Continue until cell AW366 reached.


    If possible i would like the speed of the cycle to be variable, So i can select a 0.5 second delay before Cell A1 changes to the next reference.

    Many Many Thanks
    Last edited by freud1; 06-16-2009 at 12:04 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Time delay to change cell reference

    Try this. I haven't used Wait before and am not sure if goes to half-seconds.
    Sub x()
    
    Dim rCell As Range
    
    For Each rCell In Range("B2:AW366")
        Range("A1").Value = rCell
        Application.Wait (Now + TimeValue("0:00:01"))
    Next rCell
    
    End Sub

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

    Re: Time delay to change cell reference

    you are a living legend!

    (does not allow 0.5 seconds but works well!)

    many thanks!

+ 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