Results 1 to 14 of 14

Only repeat once

Threaded View

jackandjill Only repeat once 06-13-2010, 05:19 AM
royUK Re: Only repeat once 06-13-2010, 05:48 AM
jackandjill Re: Only repeat once 06-13-2010, 06:43 AM
royUK Re: Only repeat once 06-13-2010, 06:49 AM
jackandjill Re: Only repeat once 06-13-2010, 07:03 AM
Marcol Re: Only repeat once 06-13-2010, 07:37 AM
jackandjill Re: Only repeat once 06-13-2010, 07:59 AM
pike Re: Only repeat once 06-13-2010, 08:02 AM
jackandjill Re: Only repeat once 06-13-2010, 08:18 AM
Marcol Re: Only repeat once 06-13-2010, 08:26 AM
jackandjill Re: Only repeat once 06-14-2010, 03:27 AM
snb Re: Only repeat once 06-14-2010, 07:28 AM
Marcol Re: Only repeat once 06-14-2010, 08:22 AM
jackandjill Re: Only repeat once 06-24-2010, 12:10 AM
  1. #1
    Registered User
    Join Date
    02-13-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    70

    Only repeat once

    Hi this might be one of the old tricks in the book but also this is a simple one i believe, ok here is what i am trying to do
    in the below code i want to take note of time that happens each time (pls see attached file)

    
    Private Sub Worksheet_Change(ByVal Target As Range)
    
    Dim x As Long
    x = 1
    
    If (Range("J5").Value = Range("D4").Value) Then
    For x = 1 To 10
    Range("D4").Interior.ColorIndex = 16
    Range("D4").Locked = True
    Cells(x, 11).Value = "ok"
    Next x
    'Range("K1").Value = Time.Now()
    End If
    
    End Sub
    but the problem is that i can't progress on to the next row because the loop goes back to X=1
    again and again, how to overcome this?
    Attached Files Attached Files
    Last edited by jackandjill; 06-24-2010 at 12:11 AM.

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