Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I was wondering if I could get help to write a query for the scenario whe I enter a value in column A and a date appears in column B, which stays fixed and does not change based on the current date. Also, if I delete the value from Column A, then the date also gets deleted. This is what I have so far: Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column = 1 Then Target.Offset(0, 1).Value = Now() End If End Sub The problem is, as I said, if I delete the value from column A, the date still stays in column B, which I don't want it to. Any help will be great. Thanks very much! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Keeping date from changing | Excel Discussion (Misc queries) | |||
Difference between fixed and variable date | Excel Programming | |||
Fixed time and date | Excel Discussion (Misc queries) | |||
Keeping the format of a date | Excel Worksheet Functions | |||
Keeping a date when today's date changes | New Users to Excel |