+ Reply to Thread
Results 1 to 2 of 2

Date Functions

  1. #1
    CrimsonPlague29
    Guest

    Date Functions

    Hello,

    I would like to be able to have the following happen. If Part # cell is
    blank then Completed Date is blank, but if a value is entered into the part #
    cell I would like to have the current date appear in the Completed Date cell,
    and to stay that date. Currently once midnight comes the date changes.

    Sample chart:
    Part # Request Date Completed Date

    1234 April 23/06

    Thanks

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    re: auto date entry

    Hey,
    try this change event macro in the sheet module:
    -----------------------------
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Select Case Target.Column
    Case 2
    If Target.Offset(0, -1).Value > "" Then
    Target.Offset(0, 1).Value = Format(Now(), "mm/dd/yyyy")
    Else
    Target.Offset(0, 1).Value = ""
    End If
    End Select
    End Sub
    ----------------------------------------
    Ben

+ 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