Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Next problem!

  1. #1
    New Member
    Join Date
    Mar 2002
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)


    I have this formula, given to me by Paul B.

    It works a treat!!
    But if I enter data in field 1 it puts date in field 2.

    If I clear field 1 after this, the date stays in field 2.

    How can I edit the code to clear this??


    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Target.Count > 1 Then Exit Sub
    Select Case Target.Column
    Case 1
    Cells(Target.Row, 2) = Time & " " & Date
    End Select
    End Sub

  2. #2


    select column B when you select your data in A and delete them at the same time, because this is in VBA it will put the date back in when you enter your data in A again. please keep posting to the same thread other wise people will have a hard time tracking it

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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