![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 4
|
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 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
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 |
|
New Member
Join Date: Mar 2002
Posts: 4
|
Hello,
Thanks for your help, I will give it a try. Best regards, Frits Jager |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|