+ Reply to Thread
Results 1 to 2 of 2

Auto populating date field

  1. #1
    TimM
    Guest

    Auto populating date field

    Ok so I have the following formula =IF(OR(H1={1,2,3,4}),TODAY(),"") and it
    works all well and good but every day it changes the field to the next day.
    Is there a way to make it so it will not update the next day.

    What it does is when I enter a 1, 2, 3, 4 into that row in column H it
    populates the field (we will say A1) with todays date. And it stays blank
    when H is empty.

    If any one can figure this out for me it would be great. It’s not a dire
    thing but more of a I’ve gone this far with it might as well have it work
    properly.

    --
    Thanks
    TimM

  2. #2
    CLR
    Guest

    RE: Auto populating date field

    Maybe with code.........

    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    If Range("h1").Value <= 5 Then
    Range("a1").Value = Date
    Else
    Range("a1").Value = ""
    End If
    End Sub


    Vaya con Dios,
    Chuck, CABGx3



    "TimM" wrote:

    > Ok so I have the following formula =IF(OR(H1={1,2,3,4}),TODAY(),"") and it
    > works all well and good but every day it changes the field to the next day.
    > Is there a way to make it so it will not update the next day.
    >
    > What it does is when I enter a 1, 2, 3, 4 into that row in column H it
    > populates the field (we will say A1) with todays date. And it stays blank
    > when H is empty.
    >
    > If any one can figure this out for me it would be great. It’s not a dire
    > thing but more of a I’ve gone this far with it might as well have it work
    > properly.
    >
    > --
    > Thanks
    > TimM


+ 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