Results 1 to 3 of 3

Removing time in cell

Threaded View

  1. #1
    Registered User
    Join Date
    05-07-2009
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    22

    Removing time in cell

    Hi everyone,

    I have some code that display date and time in a cell when "done" is input into the adjaecent cell. (Any value would be the trigger, though)

    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
    
    If Target.Cells.Count = 1 And Target.Column = 7 Then
    Target.Offset(0, 1) = Now
    
    End If
    End Sub
    Can this be altered so that when "done" is deleted in the adjaecent cell the time/date is removed. At the moment you have to do it manually.

    Thanks in advance
    Last edited by bigbadlee; 05-16-2009 at 05:09 PM. Reason: solved

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