Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Generating date

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

    Default


    Hello,


    I'm having a little problem generating a date.

    What I would like to do, is the following.

    When an article number is entered in cell A1, I want today's date to be generated in cell A2.
    I do not want this date to be changed automatically the next day, the date has to remain the same as long as there is an article number in cell A1.

    Is there any way to do this ?


    Best regards

    Frits Jager

  2. #2
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi Frits


    If you right click on the sheet name tab and select "View Code" you can paste in this:

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then Range("A2") = Date
    End Sub




  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hello,

    Thanks for your help, I will give it a try.


    Best regards,
    Frits Jager

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
  •